Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
85f21572
authored
Nov 27, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: reset destroyed flag on deploy
parent
94adcc77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
circle/vm/models.py
+3
-0
No files found.
circle/vm/models.py
View file @
85f21572
...
@@ -674,6 +674,9 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
...
@@ -674,6 +674,9 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
with
instance_activity
(
code_suffix
=
'deploy'
,
instance
=
self
,
with
instance_activity
(
code_suffix
=
'deploy'
,
instance
=
self
,
task_uuid
=
task_uuid
,
user
=
user
)
as
act
:
task_uuid
=
task_uuid
,
user
=
user
)
as
act
:
# Clear destroyed flag
self
.
destroyed
=
None
# Find unused port for VNC
# Find unused port for VNC
if
self
.
vnc_port
is
None
:
if
self
.
vnc_port
is
None
:
self
.
vnc_port
=
find_unused_vnc_port
()
self
.
vnc_port
=
find_unused_vnc_port
()
...
...
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