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

bug #657: Change vm_name template to string instead of symbol

This commit is contained in:
Daniel Molina 2011-05-23 17:17:55 +02:00
parent 486b601e18
commit ea247285d4

View File

@ -33,7 +33,7 @@ module OpenNebulaJSON
template_id = vm_hash['template_id']
template = "TEMPLATE_ID = #{template_id}"
template << "\nNAME = #{vm_hash[:vm_name]}" if vm_hash[:vm_name]
template << "\nNAME = #{vm_hash['vm_name']}" if vm_hash['vm_name']
else
template = template_to_str(vm_hash)