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

Do no print extra empty line in onegroup create

This commit is contained in:
Javi Fontan 2014-03-14 15:46:10 +01:00
parent 09b840076e
commit 494dfffb38

View File

@ -52,7 +52,7 @@ class OneGroupHelper < OpenNebulaHelper::OneHelper
group = factory
exit_code , msg = group.create(group_hash)
puts msg if msg
puts msg if msg && !msg.empty?
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