Commit 42d050b
committed
Fix volume group create from source to use dict access
When creating a volume group from a source group or group snapshot,
the create_group_from_source API returns a dictionary rather than
an SDK resource object. This change updates the code to access the
group ID using dictionary notation (group['id']) instead of
attribute access (group.id).
Updated unit tests to mock create_group_from_source with a
dictionary return value to match the actual API behavior.
Assisted-By: Claude Sonnet 4.5
Change-Id: Icefc4f2237f39f1ab52837f8ad8cebf0869c3b99
Signed-off-by: rajathere <rajatdhasmana@gmail.com>1 parent caec5c3 commit 42d050b
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| |||
0 commit comments