Skip to content

Commit d4e9cb7

Browse files
authored
Merge pull request #854 from agrare/fix_scanning_connect_to_ems
Fix MiqVim argument format for Scanning
2 parents 5e3dac8 + d9bcf2b commit d4e9cb7

File tree

1 file changed

+1
-1
lines changed
  • app/models/manageiq/providers/vmware/infra_manager/vm_or_template_shared

1 file changed

+1
-1
lines changed

app/models/manageiq/providers/vmware/infra_manager/vm_or_template_shared/scanning.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def connect_to_ems(ost)
6868
begin
6969
require 'VMwareWebService/MiqVim'
7070
# TODO: Should this move to the EMS?
71-
ost.miqVim = MiqVim.new(host_address, miqVimHost[:username], password_decrypt)
71+
ost.miqVim = MiqVim.new(:server => host_address, :username => miqVimHost[:username], :password => password_decrypt)
7272
# ost.snapId = opts.snapId if opts.snapId
7373
$log.info "Connection to [#{ems_display_text}] completed for VM:[#{@vmCfgFile}] in [#{Time.now - st}] seconds"
7474
rescue Timeout::Error => err

0 commit comments

Comments
 (0)