mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-25 06:03:36 +03:00
Bug #2617: Return ID for newly created group (onegroup)
This commit is contained in:
parent
7201280463
commit
25b9d4be18
@ -50,8 +50,8 @@ class OneGroupHelper < OpenNebulaHelper::OneHelper
|
||||
|
||||
puts msg if msg
|
||||
|
||||
if OpenNebula.is_error?(exit_code)
|
||||
puts exit_code.message if exit_code.message
|
||||
if (exit_code.class==Fixnum and exit_code < 0) or OpenNebula.is_error?(exit_code)
|
||||
puts exit_code.message if OpenNebula.is_error?(exit_code) && exit_code.message
|
||||
return -1
|
||||
else
|
||||
puts "ID: #{group.id.to_s}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user