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
dd6a8445
authored
9 years ago
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: review resultant state
Closes #382
parent
e5276242
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
circle/vm/operations.py
+9
-1
No files found.
circle/vm/operations.py
View file @
dd6a8445
...
...
@@ -377,7 +377,12 @@ class DeployOperation(InstanceOperation):
self
.
instance
.
allocate_node
()
# Deploy virtual images
self
.
instance
.
_deploy_disks
(
parent_activity
=
activity
)
try
:
self
.
instance
.
_deploy_disks
(
parent_activity
=
activity
)
except
:
self
.
instance
.
yield_node
()
self
.
instance
.
yield_vnc_port
()
raise
# Deploy VM on remote machine
if
self
.
instance
.
state
not
in
[
'PAUSED'
]:
...
...
@@ -452,6 +457,9 @@ class DestroyOperation(InstanceOperation):
required_perms
=
()
resultant_state
=
'DESTROYED'
def
on_abort
(
self
,
activity
,
error
):
activity
.
resultant_state
=
None
def
_operation
(
self
,
activity
,
system
):
# Destroy networks
with
activity
.
sub_activity
(
...
...
This diff is collapsed.
Click to expand it.
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