Skip to content

Commit 5f9cd33

Browse files
committed
Fix wrong number of arguments delete_snapshot_by_description
Fix `wrong number of arguments (given 3, expected 0; required keywords: server, username, password)`
1 parent b039182 commit 5f9cd33

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def delete_snapshot_by_description(mor)
191191
begin
192192
password_decrypt = ManageIQ::Password.decrypt(miqVimHost[:password])
193193
require 'VMwareWebService/MiqVim'
194-
miqVim = MiqVim.new(server, miqVimHost[:username], password_decrypt)
194+
miqVim = MiqVim.new(:server => server, :username => miqVimHost[:username], :password => password_decrypt)
195195

196196
vimVm = miqVim.getVimVm(vm.path)
197197
vimVm.removeSnapshotByDescription(mor, true) unless vimVm.nil?

0 commit comments

Comments
 (0)