Fix marking a machine as used.
Change-Id: I6f9a82aebf08eec06249e8868f6eb9462ad8ac67
This commit is contained in:
@@ -26,5 +26,5 @@ node = db.getMachineForUse()
|
||||
if not node:
|
||||
raise Exception("No ready nodes")
|
||||
|
||||
print "NODE_IP_ADDR=%s\n" % node['ip']
|
||||
print "NODE_UUID=%s\n" % node['uuid']
|
||||
print "NODE_IP_ADDR=%s" % node['ip']
|
||||
print "NODE_UUID=%s" % node['uuid']
|
||||
|
||||
@@ -81,7 +81,7 @@ class VMDatabase(object):
|
||||
ret = None
|
||||
for m in self.getMachines():
|
||||
if m['state']==READY:
|
||||
self.setMachineState(m['id'], USED)
|
||||
self.setMachineState(m['uuid'], USED)
|
||||
ret = m
|
||||
break
|
||||
self.conn.execute("commit")
|
||||
|
||||
Reference in New Issue
Block a user