diff options
author | Keigo Noha <knoha@redhat.com> | 2022-03-04 17:38:20 +0900 |
---|---|---|
committer | Keigo Noha <knoha@redhat.com> | 2022-04-08 02:44:21 +0000 |
commit | 3d5ffd4bd493337435c37b4c34f564b8b0a57c13 (patch) | |
tree | 6fbf16f2c90ba9f1012355e022d02b95fd002a40 | |
parent | 3153a5bca88548f1b14efd8844d9b722b5dfeafd (diff) | |
download | horizon-3d5ffd4bd493337435c37b4c34f564b8b0a57c13.tar.gz |
Change to a proper policy for Resume operation
Previously, ToggleSuspend class checked 'os-rescue' policy for resuming
an instance. To align to resume operation, this fix changes to
'os-suspend-server:resume'.
Closes-Bug: #1963652
Change-Id: If6386ecdb81fb1f0d88dab447ee81c251b9857b7
(cherry picked from commit 29da801528a357449264e546182bd629f4654275)
(cherry picked from commit db40c8ceb6c403bc94ac839f65c00805a5e4ff66)
(cherry picked from commit d3bb9cd86a72fb270ff4f4d2b5ddea04c899ef53)
(cherry picked from commit 3e964000a80d271e02cea3deba02d578f8d21dbf)
(cherry picked from commit d25fecedda0124ea9743ac259406f6accb11c64a)
-rw-r--r-- | openstack_dashboard/dashboards/project/instances/tables.py | 2 | ||||
-rw-r--r-- | releasenotes/notes/bug_1963652_fix_policy_for_resume-a719efb23054c708.yaml | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/openstack_dashboard/dashboards/project/instances/tables.py b/openstack_dashboard/dashboards/project/instances/tables.py index d12c8bebf..b81a23848 100644 --- a/openstack_dashboard/dashboards/project/instances/tables.py +++ b/openstack_dashboard/dashboards/project/instances/tables.py @@ -331,7 +331,7 @@ class ToggleSuspend(tables.BatchAction): if self.suspended: self.current_present_action = RESUME policy_rules = ( - ("compute", "os_compute_api:os-rescue"),) + ("compute", "os_compute_api:os-suspend-server:resume"),) else: self.current_present_action = SUSPEND policy_rules = ( diff --git a/releasenotes/notes/bug_1963652_fix_policy_for_resume-a719efb23054c708.yaml b/releasenotes/notes/bug_1963652_fix_policy_for_resume-a719efb23054c708.yaml new file mode 100644 index 000000000..1dfd7d1a0 --- /dev/null +++ b/releasenotes/notes/bug_1963652_fix_policy_for_resume-a719efb23054c708.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Previously, ToggleSuspend class checked os-rescue policy + for resume operation. By this fix, the class checks + 'os_compute_api:os-suspend-server:resume' policy to align + to resume operation. |