summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-08-18 10:05:37 -0500
committerJosh Kearney <josh@jk0.org>2011-08-18 10:05:37 -0500
commita876958e6474957bb63eab6702c1633b6995e56c (patch)
tree4fa5de3e3e0994d15ff872a5248b96b25212d38d /plugins
parentfeabc363f29659c6d3846b9996c79e6ad5bfe6bc (diff)
parentfc7106a5ea476f94c0f832dafebb17181cbe6177 (diff)
downloadnova-a876958e6474957bb63eab6702c1633b6995e56c.tar.gz
nova-a876958e6474957bb63eab6702c1633b6995e56c.tar.xz
nova-a876958e6474957bb63eab6702c1633b6995e56c.zip
Merged trunk.
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost
index cd9694ce1..36c61f78d 100755
--- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost
+++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost
@@ -258,6 +258,7 @@ def cleanup(dct):
# out["host_suspend-image-sr-uuid"] = dct.get("suspend-image-sr-uuid", "")
# out["host_crash-dump-sr-uuid"] = dct.get("crash-dump-sr-uuid", "")
# out["host_local-cache-sr"] = dct.get("local-cache-sr", "")
+ out["enabled"] = dct.get("enabled", "true") == "true"
out["host_memory"] = omm = {}
omm["total"] = safe_int(dct.get("memory-total", ""))
omm["overhead"] = safe_int(dct.get("memory-overhead", ""))