1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

B #2712: Lambda rocket Ruby 1.9.x incompatible syntax

This commit is contained in:
Vlastimil Holer 2018-12-12 10:31:59 +01:00 committed by Tino Vázquez
parent 919fd01b00
commit 9f44f3869c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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"