Skip to content

Commit

Permalink
Merge pull request ManageIQ#12255 from agrare/vmware/infra/cleanup_re…
Browse files Browse the repository at this point in the history
…dundant_vm_pause

Remove redundant vm_pause from VMware InfraManager
  • Loading branch information
blomquisg authored Nov 2, 2016
2 parents 526c99c + dac3ba7 commit facafbe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions app/models/manageiq/providers/vmware/infra_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ def vm_suspend(vm, options = {})
invoke_vim_ws(:suspend, vm, options[:user_event])
end

def vm_pause(vm, options = {})
invoke_vim_ws(:pause, vm, options[:user_event])
end

def vm_shutdown_guest(vm, options = {})
invoke_vim_ws(:shutdownGuest, vm, options[:user_event])
end
Expand Down
3 changes: 1 addition & 2 deletions gems/pending/VMwareWebService/MiqVimVm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ def suspend(wait = true)
$vim_log.info "MiqVimVm(#{@invObj.server}, #{@invObj.username}).suspend: returned from suspendVM_Task" if $vim_log
return taskMor unless wait
waitForTask(taskMor)
end # def pause
alias_method :pause, :suspend
end # def suspend

def reset(wait = true)
$vim_log.info "MiqVimVm(#{@invObj.server}, #{@invObj.username}).reset: calling resetVM_Task" if $vim_log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
include_examples "Vm operation is available when powered on"
end

context("with :pause") do
let(:state) { :pause }
include_examples "Vm operation is available when powered on"
end

context("with :shutdown_guest") do
let(:state) { :shutdown_guest }
include_examples "Vm operation is available when powered on"
Expand Down

0 comments on commit facafbe

Please sign in to comment.