diff options
| author | Ed Leafe <ed@leafe.com> | 2011-08-17 19:58:22 +0000 |
|---|---|---|
| committer | Ed Leafe <ed@leafe.com> | 2011-08-17 19:58:22 +0000 |
| commit | ecc4e9ee389115e3793f94aaf53f8fbe59e7ac66 (patch) | |
| tree | 74fac1d486456f40b3e2ee9d15512e1ae7d62b22 /plugins | |
| parent | aca07a42fabb7f506cf132b995b4ad0139987b02 (diff) | |
| download | nova-ecc4e9ee389115e3793f94aaf53f8fbe59e7ac66.tar.gz nova-ecc4e9ee389115e3793f94aaf53f8fbe59e7ac66.tar.xz nova-ecc4e9ee389115e3793f94aaf53f8fbe59e7ac66.zip | |
Added the host 'enabled' status to the host_data returned by the plugin.
Diffstat (limited to 'plugins')
| -rwxr-xr-x | plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost | 1 |
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", "")) |
