diff options
author | Keigo Noha <knoha@redhat.com> | 2022-03-04 17:38:20 +0900 |
---|---|---|
committer | Keigo Noha <knoha@redhat.com> | 2022-03-07 07:29:45 +0000 |
commit | db40c8ceb6c403bc94ac839f65c00805a5e4ff66 (patch) | |
tree | d76b72938613f27a2077574fb08c57cc97cc428b /openstack_dashboard | |
parent | 27887e356f4c7a62d20d75b15dc08ac9762a3f0f (diff) | |
download | horizon-db40c8ceb6c403bc94ac839f65c00805a5e4ff66.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)
Diffstat (limited to 'openstack_dashboard')
-rw-r--r-- | openstack_dashboard/dashboards/project/instances/tables.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_dashboard/dashboards/project/instances/tables.py b/openstack_dashboard/dashboards/project/instances/tables.py index 674ebdca2..7eaff6b54 100644 --- a/openstack_dashboard/dashboards/project/instances/tables.py +++ b/openstack_dashboard/dashboards/project/instances/tables.py @@ -324,7 +324,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 = ( |