Commit f6fb21d8 by tarokkk

adding simple debug scheduler

parent 06a7ac9d
def get_node():
pass
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
try:
return Node.objects.all()[0]
except:
return None
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