1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #696: Fix CLI expected Integer error

This commit is contained in:
Daniel Molina 2011-07-05 16:13:20 +02:00
parent ec9f9b59f1
commit 4edcd9ffd8

View File

@ -294,7 +294,7 @@ EOT
end
def OpenNebulaHelper.name_to_id(name, poolname, user_flag=-2)
return 0, name if name.match(/^[0123456789]+$/)
return 0, name.to_i if name.match(/^[0123456789]+$/)
client = OpenNebula::Client.new
# TBD user_flag