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
This commit is contained in:
Keigo Noha 2022-03-04 17:38:20 +09:00
parent ba079cbe38
commit 29da801528
2 changed files with 7 additions and 1 deletions

View File

@ -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 = (

View File

@ -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.