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:
parent
919fd01b00
commit
9f44f3869c
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user