Put a try block around maxMemory call
This commit is contained in:
parent
2c988430db
commit
329aa93d81
|
@ -44,7 +44,11 @@ class VMInstance:
|
|||
self.instop = False
|
||||
|
||||
self.dom = self.lookupByUUID(self.domuuid)
|
||||
|
||||
try:
|
||||
self.maxmemory = self.dom.maxMemory()
|
||||
except:
|
||||
self.maxmemory = 0
|
||||
|
||||
# Watch for changes to the state field in Zookeeper
|
||||
@zk_conn.DataWatch('/domains/{}/state'.format(self.domuuid))
|
||||
|
|
Loading…
Reference in New Issue