Commit 85f21572 by Dudás Ádám

vm: reset destroyed flag on deploy

parent 94adcc77
......@@ -674,6 +674,9 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
with instance_activity(code_suffix='deploy', instance=self,
task_uuid=task_uuid, user=user) as act:
# Clear destroyed flag
self.destroyed = None
# Find unused port for VNC
if self.vnc_port is None:
self.vnc_port = find_unused_vnc_port()
......
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