Permalink
Browse files

Changed returned status from binary (1 or 0) to libvirt 1~7 states

  • Loading branch information...
1 parent fb59fea commit 0638d49badf863a539171c481ed094037edfebd8 @carlasouza carlasouza committed Jul 8, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 control/src/python/workspacecontrol/defaults/lvrt/lvrt_common.py
View
5 control/src/python/workspacecontrol/defaults/lvrt/lvrt_common.py
@@ -334,12 +334,13 @@ def _get_list_defined_domains(self):
#Defined domains
ddomains = vmm.listDefinedDomains()
for domain in ddomains:
- res[domain] = vmm.lookupByName(domain).isActive()
+ res[domain] = vmm.lookupByName(domain).info()[0]
#Running domains
rdomains = vmm.listDomainsID()
for domain in rdomains:
name = vmm.lookupByID(domain).name()
- res[name] = vmm.lookupByID(domain).isActive()
+ res[name] = vmm.lookupByID(domain).info()[0]
+ print res
return json.dumps(res)

0 comments on commit 0638d49

Please sign in to comment.