mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-25 06:03:36 +03:00
Signed-off-by: Carlos Herrera <cherrera@opennebula.systems> (cherry picked from commit e9e36427d9e79cca41fca8ad673f722837f71ba2)
This commit is contained in:
parent
fa05b6e56c
commit
1e5659a7ed
@ -403,6 +403,12 @@ module VirtualMachineMonitor
|
|||||||
vmware_tools = self['guest.toolsRunningStatus'].to_s
|
vmware_tools = self['guest.toolsRunningStatus'].to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if @vm_info
|
||||||
|
vm_name = @vm_info['name'].to_s
|
||||||
|
else
|
||||||
|
vm_name = self['name'].to_s
|
||||||
|
end
|
||||||
|
|
||||||
if @vm_info
|
if @vm_info
|
||||||
vmtools_ver = @vm_info['guest.toolsVersion'].to_s
|
vmtools_ver = @vm_info['guest.toolsVersion'].to_s
|
||||||
else
|
else
|
||||||
@ -453,6 +459,7 @@ module VirtualMachineMonitor
|
|||||||
|
|
||||||
str_info << 'VCENTER_ESX_HOST="' << esx_host << '" '
|
str_info << 'VCENTER_ESX_HOST="' << esx_host << '" '
|
||||||
str_info << 'VCENTER_GUEST_STATE=' << guest_state << ' '
|
str_info << 'VCENTER_GUEST_STATE=' << guest_state << ' '
|
||||||
|
str_info << 'VCENTER_VM_NAME=' << vm_name << ' '
|
||||||
str_info << 'VCENTER_VMWARETOOLS_RUNNING_STATUS=' << vmware_tools << ' '
|
str_info << 'VCENTER_VMWARETOOLS_RUNNING_STATUS=' << vmware_tools << ' '
|
||||||
str_info << 'VCENTER_VMWARETOOLS_VERSION=' << vmtools_ver << ' '
|
str_info << 'VCENTER_VMWARETOOLS_VERSION=' << vmtools_ver << ' '
|
||||||
str_info << 'VCENTER_VMWARETOOLS_VERSION_STATUS=' \
|
str_info << 'VCENTER_VMWARETOOLS_VERSION_STATUS=' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user