diff --git a/app/models/manageiq/providers/vmware/infra_manager.rb b/app/models/manageiq/providers/vmware/infra_manager.rb index 5df702f2865..68ec40d8dbf 100644 --- a/app/models/manageiq/providers/vmware/infra_manager.rb +++ b/app/models/manageiq/providers/vmware/infra_manager.rb @@ -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 diff --git a/gems/pending/VMwareWebService/MiqVimVm.rb b/gems/pending/VMwareWebService/MiqVimVm.rb index e226825042d..ae20edc96b8 100644 --- a/gems/pending/VMwareWebService/MiqVimVm.rb +++ b/gems/pending/VMwareWebService/MiqVimVm.rb @@ -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 diff --git a/spec/models/manageiq/providers/vmware/infra_manager/vm_spec.rb b/spec/models/manageiq/providers/vmware/infra_manager/vm_spec.rb index 973775410aa..13a8d8bec4b 100644 --- a/spec/models/manageiq/providers/vmware/infra_manager/vm_spec.rb +++ b/spec/models/manageiq/providers/vmware/infra_manager/vm_spec.rb @@ -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"