Fix marking a machine as used.

Change-Id: I6f9a82aebf08eec06249e8868f6eb9462ad8ac67
This commit is contained in:
James E. Blair
2011-12-23 11:24:17 -08:00
parent 9149699efb
commit 96353deb60
2 changed files with 3 additions and 3 deletions

View File

@@ -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']

View File

@@ -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")