1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #2433 Monitoring VMs fails when there is not datastore associated (#2434)

This commit is contained in:
Jose Angel Garrido Montoya 2018-09-19 17:09:35 +02:00 committed by Tino Vázquez
parent 62e6e8a474
commit 20acb7a213

View File

@ -852,7 +852,9 @@ class Template
str << "IMPORT_STATE =\"#{@state}\"\n"
# Get DS information
str << "VCENTER_DS_REF = \"#{@vm_info["datastore"].last._ref}\"\n"
if !@vm_info["datastore"].last._ref.nil?
str << "VCENTER_DS_REF = \"#{@vm_info["datastore"].last._ref}\"\n"
end
vnc_port = nil
keymap = VCenterDriver::VIHelper.get_default("VM/TEMPLATE/GRAPHICS/KEYMAP")