summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-04-27 11:23:48 +0000
committerGerrit Code Review <review@openstack.org>2022-04-27 11:23:48 +0000
commitd3d3d18ee63c43dfa12233f34fe8a374655a1510 (patch)
tree58199335281655ba23eba0b7ca26534f2c674483
parent724005ca275e820d2850feba3139c058d7d07958 (diff)
parent3d5ffd4bd493337435c37b4c34f564b8b0a57c13 (diff)
downloadhorizon-d3d3d18ee63c43dfa12233f34fe8a374655a1510.tar.gz
Merge "Change to a proper policy for Resume operation" into stable/train
-rw-r--r--openstack_dashboard/dashboards/project/instances/tables.py2
-rw-r--r--releasenotes/notes/bug_1963652_fix_policy_for_resume-a719efb23054c708.yaml7
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 8cfce2b6e..7a463eb75 100644
--- a/openstack_dashboard/dashboards/project/instances/tables.py
+++ b/openstack_dashboard/dashboards/project/instances/tables.py
@@ -333,7 +333,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.