1
0
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:
Carlos Martín 2014-03-07 14:48:15 +01:00
parent 7033ba3ab9
commit d07b57116d

View File

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