Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Vm#set_description error #922

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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