Commit 920e8c09 by Guba Sándor

vm: Fixing schedule on already scheduled node

parent d0dfbd18
...@@ -667,7 +667,8 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel): ...@@ -667,7 +667,8 @@ 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
self.node = scheduler.get_node(self, Node.objects.all()) if self.node is None:
self.node = scheduler.get_node(self, Node.objects.all())
self.save() self.save()
# Deploy virtual images # Deploy virtual images
......
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