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:
parent
53c699e24b
commit
9210a783ca
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user