Commit ed1080d0 by Dudás Ádám

manager: change function's name to more appropriate

parent fcb3d718
...@@ -17,7 +17,7 @@ class TraitsUnsatisfiableException(Exception): ...@@ -17,7 +17,7 @@ class TraitsUnsatisfiableException(Exception):
Exception.__init__(self, message) Exception.__init__(self, message)
def get_node(instance, nodes): def select_node(instance, nodes):
''' Select a node for hosting an instance based on its requirements. ''' Select a node for hosting an instance based on its requirements.
''' '''
# check required traits # check required traits
......
...@@ -680,7 +680,7 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel): ...@@ -680,7 +680,7 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
# Schedule # Schedule
if self.node is None: if self.node is None:
self.node = scheduler.get_node(self, Node.objects.all()) self.node = scheduler.select_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