Commit fd609634 by Guba Sándor

added emergency prefix

parent 2b903276
...@@ -719,15 +719,14 @@ register_operation(RenewOperation) ...@@ -719,15 +719,14 @@ register_operation(RenewOperation)
class ChangeStateOperation(InstanceOperation): class ChangeStateOperation(InstanceOperation):
activity_code_suffix = 'change_state' activity_code_suffix = 'emergency_change_state'
id = 'change_state' id = 'emergency_change_state'
name = _("change state") name = _("emergency change state")
description = _("Change the virtual machine state to NOSTATE") description = _("Change the virtual machine state to NOSTATE")
acl_level = "owner" acl_level = "owner"
required_perms = ('vm.change_state', ) required_perms = ('vm.emergency_change_state', )
def _operation(self, user, activity, new_state="NOSTATE", def _operation(self, user, activity, new_state="NOSTATE"):
reason=None, lease=None):
activity.resultant_state = new_state activity.resultant_state = new_state
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment