diff --git a/spec/mock_vsphere_helper.rb b/spec/mock_vsphere_helper.rb index 8fac2a8..701f948 100644 --- a/spec/mock_vsphere_helper.rb +++ b/spec/mock_vsphere_helper.rb @@ -88,13 +88,13 @@ def self.set_config(conf) end def self.powerOn - @@vms.each do |_name, vm| + @@vms.each_value do |vm| vm.powerState = 'poweredOn' end end def self.powerOff - @@vms.each do |_name, vm| + @@vms.each_value do |vm| vm.powerState = 'poweredOff' end end