Commit 920e8c09 by Guba Sándor

vm: Fixing schedule on already scheduled node

parent d0dfbd18
...@@ -667,6 +667,7 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel): ...@@ -667,6 +667,7 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
raise Exception("No unused port could be found for VNC.") raise Exception("No unused port could be found for VNC.")
# Schedule # Schedule
if self.node is None:
self.node = scheduler.get_node(self, Node.objects.all()) self.node = scheduler.get_node(self, Node.objects.all())
self.save() self.save()
......
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