summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-03-25 04:26:09 +0000
committerGerrit Code Review <review@openstack.org>2022-03-25 04:26:09 +0000
commit034b79a1db54053bc2f6e0268f36076b1aca3d96 (patch)
treecc97dbacdf0245e61baecd449207c5305d89261c
parent4f4e8800904dc98a696c5aebe3ffcc947e2deabc (diff)
parentdb40c8ceb6c403bc94ac839f65c00805a5e4ff66 (diff)
downloadhorizon-034b79a1db54053bc2f6e0268f36076b1aca3d96.tar.gz
Merge "Change to a proper policy for Resume operation" into stable/xena
-rw-r--r--openstack_dashboard/dashboards/project/instances/tables.py2
-rw-r--r--releasenotes/notes/bug_1963652_fix_policy_for_resume-a719efb23054c708.yaml6
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 624a59597..53e8b4b23 100644
--- a/openstack_dashboard/dashboards/project/instances/tables.py
+++ b/openstack_dashboard/dashboards/project/instances/tables.py
@@ -326,7 +326,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.