diff --git a/src/cli/one_helper/onevcenter_helper.rb b/src/cli/one_helper/onevcenter_helper.rb index 0965b2b939..d6c42c35b1 100644 --- a/src/cli/one_helper/onevcenter_helper.rb +++ b/src/cli/one_helper/onevcenter_helper.rb @@ -359,7 +359,7 @@ class OneVcenterHelper < OpenNebulaHelper::OneHelper end def self.network_dialogue(n) - ask = -> (question, default = ""){ + ask = ->(question, default = ""){ STDOUT.print question answer = STDIN.gets.strip diff --git a/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb b/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb index 71bb13b7b3..9e33caa284 100644 --- a/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb +++ b/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb @@ -1078,7 +1078,7 @@ class VirtualMachine < VCenterDriver::Template SUPPORTED_DEV = ['disk'] def set_boot_order(boot_info) - convert = -> (device_str){ + convert = ->(device_str){ spl = device_str.scan(/^disk|\d+$/) if !SUPPORTED_DEV.include?(spl[0]) raise "#{device_str} is not supported in boot order"