diff options
-rw-r--r-- | openstack_dashboard/dashboards/project/instances/tables.py | 2 | ||||
-rw-r--r-- | releasenotes/notes/bug_1963652_fix_policy_for_resume-a719efb23054c708.yaml | 6 |
2 files changed, 7 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 = ( 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..6c2b31faf --- /dev/null +++ b/releasenotes/notes/bug_1963652_fix_policy_for_resume-a719efb23054c708.yaml @@ -0,0 +1,6 @@ +--- +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. |