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:
parent
ec9f9b59f1
commit
4edcd9ffd8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user