From 7a6f7097f73f4ee7e7afdb0c6aafaeaac3df5c95 Mon Sep 17 00:00:00 2001 From: "sneha.gaddam" Date: Fri, 16 Sep 2022 20:48:43 +0000 Subject: [PATCH] Fix the Create Share Group from Snap Shot create. Closes-Bug: #1990013 Change-Id: Iba5ca5eed1abf2e28d365295cd3b641c565d7fc1 --- manilaclient/osc/v2/share_groups.py | 2 +- ...fix-share-grou-from-snapshot-create-fa3629cf1417ba20.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/Bug-1990013-fix-share-grou-from-snapshot-create-fa3629cf1417ba20.yaml diff --git a/manilaclient/osc/v2/share_groups.py b/manilaclient/osc/v2/share_groups.py index 487d0f64d..35ba1cb70 100644 --- a/manilaclient/osc/v2/share_groups.py +++ b/manilaclient/osc/v2/share_groups.py @@ -110,7 +110,7 @@ class CreateShareGroup(command.ShowOne): source_share_group_snapshot = None if parsed_args.source_share_group_snapshot: source_share_group_snapshot = osc_utils.find_resource( - share_client.source_share_group_snapshots, + share_client.share_group_snapshots, parsed_args.source_share_group_snapshot).id body = { diff --git a/releasenotes/notes/Bug-1990013-fix-share-grou-from-snapshot-create-fa3629cf1417ba20.yaml b/releasenotes/notes/Bug-1990013-fix-share-grou-from-snapshot-create-fa3629cf1417ba20.yaml new file mode 100644 index 000000000..c9d274eab --- /dev/null +++ b/releasenotes/notes/Bug-1990013-fix-share-grou-from-snapshot-create-fa3629cf1417ba20.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Create Share group from snapshot failed due to a bug in OSC. + The issue is fixed and its working as expected.