From b1c432c3e07162d9fc12115943d244676e1ff5fe Mon Sep 17 00:00:00 2001 From: Liao Tonglang Date: Thu, 11 Aug 2016 15:41:07 +0800 Subject: [PATCH] Make IsVirtualMachine detect centos6.8 on openstack (#258) These function made mistake in centos 6.8 virtual machine. Only dmicecode work on these environment and it return Openstack Nova. A openstack case is needed in codes that check $SHORT codes. --- include/functions | 1 + 1 file changed, 1 insertion(+) diff --git a/include/functions b/include/functions index d3b01a55..b7567625 100644 --- a/include/functions +++ b/include/functions @@ -1336,6 +1336,7 @@ vmware) ISVIRTUALMACHINE=1; VMTYPE="vmware"; VMFULLTYPE="VMware product" ;; xen) ISVIRTUALMACHINE=1; VMTYPE="xen"; VMFULLTYPE="XEN" ;; zvm) ISVIRTUALMACHINE=1; VMTYPE="zvm"; VMFULLTYPE="IBM z/VM" ;; + openstack) ISVIRTUALMACHINE=1; VMTYPE="nova"; VMFULLTYPE="Openstack Nova" ;; *) LogText "Result: Unknown virtualization type, so most likely system is physical" ;; esac fi