mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
F #4913: Fix small issues
This commit is contained in:
1 parent
c318f04fe7
commit
3dcc161e24
1 file changed
+5
-1
@@ -855,7 +855,7 @@ def template_unmanaged_discover(devices, ccr_name, ccr_ref, vcenter_name, vcente
|
||||
end
|
||||
host_id = hosts.first["ID"]
|
||||
|
||||
ds = create_image_ds(ds_name, ds_ref, vcenter_name, vcenter_uuid, ccr_name, ccr_ref, host_id, one_client)
|
||||
ds = create_image_ds(ds_name, ds_ref, vcenter_name, vcenter_uuid, ccr_name, ccr_ref, dc_name, host_id, one_client)
|
||||
|
||||
create_system_ds(ds_name, ds_ref, vcenter_name, vcenter_uuid, ccr_name, ccr_ref, host_id, one_client)
|
||||
end
|
||||
@@ -2186,6 +2186,10 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
STDOUT.puts
|
||||
|
||||
hpool.each do |host|
|
||||
if host['VM_MAD'] != "vcenter"
|
||||
next
|
||||
end
|
||||
|
||||
vi_client = VCenterDriver::VIClient.new(host["ID"])
|
||||
vcenter_uuid = vi_client.vim.serviceContent.about.instanceUuid
|
||||
if vcenter_instances.include?(vcenter_uuid)
|
||||
|
||||
Reference in new issue
Block a user