From: Oliver Kurth Date: Fri, 22 Nov 2019 22:52:34 +0000 (-0800) Subject: Enable appinfo plugin for hosted products. X-Git-Tag: stable-11.1.0~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=195cdcfa2c1a652d043796aac68d59f4ce5d60aa;p=thirdparty%2Fopen-vm-tools.git Enable appinfo plugin for hosted products. Currently, with TOT code, appInfo plugin is loaded only when the VM is managed by VMware ESX server. In this changeset, that limitation is removed and the plugin will be loaded for hosted products also. --- diff --git a/open-vm-tools/services/plugins/appInfo/appInfo.c b/open-vm-tools/services/plugins/appInfo/appInfo.c index d32098475..a7e17a86b 100644 --- a/open-vm-tools/services/plugins/appInfo/appInfo.c +++ b/open-vm-tools/services/plugins/appInfo/appInfo.c @@ -499,9 +499,6 @@ ToolsOnLoad(ToolsAppCtx *ctx) NULL }; - uint32 vmxVersion = 0; - uint32 vmxType = VMX_TYPE_UNSET; - /* * Return NULL to disable the plugin if not running in a VMware VM. */ @@ -510,15 +507,6 @@ ToolsOnLoad(ToolsAppCtx *ctx) return NULL; } - /* - * Return NULL to disable the plugin if VM is not running on ESX host. - */ - if (!VmCheck_GetVersion(&vmxVersion, &vmxType) || - vmxType != VMX_TYPE_SCALABLE_SERVER) { - g_info("VM is not running on ESX host.\n"); - return NULL; - } - /* * Return NULL to disable the plugin if not running in vmsvc daemon. */