diff options
author | xiaofengw-vmware <42736879+xiaofengw-vmware@users.noreply.github.com> | 2020-03-27 00:31:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 12:31:04 -0400 |
commit | 1fefeef92fd1881b21e124b83f2adefd3e014087 (patch) | |
tree | dbfc6177930df50a9bc800c3f286d48b052a83ae /cloudinit/sources/helpers/vmware/imc/guestcust_util.py | |
parent | bacd63a782daf44937f23a1a33555cb579ae4fb5 (diff) | |
download | vyos-cloud-init-1fefeef92fd1881b21e124b83f2adefd3e014087.tar.gz vyos-cloud-init-1fefeef92fd1881b21e124b83f2adefd3e014087.zip |
VMWware: support to update guest info gc status if enabled (#261)
Diffstat (limited to 'cloudinit/sources/helpers/vmware/imc/guestcust_util.py')
-rw-r--r-- | cloudinit/sources/helpers/vmware/imc/guestcust_util.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cloudinit/sources/helpers/vmware/imc/guestcust_util.py b/cloudinit/sources/helpers/vmware/imc/guestcust_util.py index 3d369d04..c60a38d7 100644 --- a/cloudinit/sources/helpers/vmware/imc/guestcust_util.py +++ b/cloudinit/sources/helpers/vmware/imc/guestcust_util.py @@ -154,4 +154,13 @@ def get_tools_config(section, key, defaultVal): return retValue +# Sets message to the VMX guestinfo.gc.status property to the +# underlying VMware Virtualization Platform. +def set_gc_status(config, gcMsg): + if config and config.post_gc_status: + rpc = "info-set guestinfo.gc.status %s" % gcMsg + return send_rpc(rpc) + return None + + # vi: ts=4 expandtab |