mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
Feature #2765: Fix for ruby < 1.9
This commit is contained in:
parent
7033ba3ab9
commit
d07b57116d
@ -239,11 +239,11 @@ module OpenNebula
|
||||
@body['last_vmname'] ||= 0
|
||||
|
||||
n_nodes.times { |i|
|
||||
vm_name = @@vm_name_template
|
||||
.gsub("$SERVICE_ID", @service.id().to_s)
|
||||
.gsub("$SERVICE_NAME", @service.name().to_s)
|
||||
.gsub("$ROLE_NAME", name().to_s)
|
||||
.gsub("$VM_NUMBER", @body['last_vmname'].to_s)
|
||||
vm_name = @@vm_name_template.
|
||||
gsub("$SERVICE_ID", @service.id().to_s).
|
||||
gsub("$SERVICE_NAME", @service.name().to_s).
|
||||
gsub("$ROLE_NAME", name().to_s).
|
||||
gsub("$VM_NUMBER", @body['last_vmname'].to_s)
|
||||
|
||||
@body['last_vmname'] += 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user