Added the host 'enabled' status to the host_data returned by the plugin.

This commit is contained in:
Ed Leafe 2011-08-17 19:58:22 +00:00
parent aca07a42fa
commit ecc4e9ee38
1 changed files with 1 additions and 0 deletions

View File

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