Skip to content

Commit

Permalink
Merge pull request ManageIQ#922 from agrare/fix_vm_set_description
Browse files Browse the repository at this point in the history
Fix Vm#set_description error
  • Loading branch information
Fryguy authored Sep 30, 2024
2 parents 8dbccde + 6cc6801 commit b070f71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/manageiq/providers/vmware/infra_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,9 @@ def vm_quick_stats(obj, options = {})
end
alias_method :host_quick_stats, :vm_quick_stats

def vm_set_description(vm, new_description, options = {})
def vm_set_description(vm, options = {})
options[:spec] = VimHash.new("VirtualMachineConfigSpec") do |spec|
spec.annotation = new_description
spec.annotation = options.delete(:new_description)
end

vm_reconfigure(vm, options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def raw_rename(new_name)
end

def raw_set_description(new_description)
run_command_via_parent(:vm_set_description, new_description)
run_command_via_parent(:vm_set_description, :new_description => new_description)
end

def log_user_event(event_message)
Expand Down

0 comments on commit b070f71

Please sign in to comment.