1
0
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:
Tino Vazquez 2014-01-10 18:28:35 +01:00
parent 7201280463
commit 25b9d4be18

View File

@ -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}"