Commit 328afa24 by Bach Dániel

manager: fix ImportError in scheduler.py

parent 5a5f4e29
from vm.models import Node
def get_node(instance):
''' Select a node for an hosting an instance
based on requirements.
'''
# Return first Node or None
from vm.models import Node
try:
return Node.objects.all()[0]
except:
......
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