Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
Hide 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)
class
ChangeStateOperation
(
InstanceOperation
):
activity_code_suffix
=
'change_state'
id
=
'change_state'
name
=
_
(
"change state"
)
activity_code_suffix
=
'
emergency_
change_state'
id
=
'
emergency_
change_state'
name
=
_
(
"
emergency
change state"
)
description
=
_
(
"Change the virtual machine state to NOSTATE"
)
acl_level
=
"owner"
required_perms
=
(
'vm.change_state'
,
)
required_perms
=
(
'vm.
emergency_
change_state'
,
)
def
_operation
(
self
,
user
,
activity
,
new_state
=
"NOSTATE"
,
reason
=
None
,
lease
=
None
):
def
_operation
(
self
,
user
,
activity
,
new_state
=
"NOSTATE"
):
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