Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fd609634
authored
Jul 22, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added emergency prefix
parent
2b903276
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
circle/vm/operations.py
+5
-6
No files found.
circle/vm/operations.py
View file @
fd609634
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment