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

bug: Show the right error message in CLI name_to_id actions

This commit is contained in:
Ruben S. Montero 2012-06-21 13:47:49 +02:00
parent 53c699e24b
commit 9210a783ca

View File

@ -206,9 +206,8 @@ EOT
else
rc = OneHelper.name_to_id(name, pool, poolname)
if rc.first==-1
return -1, "OpenNebula #{poolname} #{name} " <<
"not found, use the ID instead"
if rc.first == -1
return rc[0], rc[1]
end
rc[1]