Do no print extra empty line in onegroup create

This commit is contained in:
Javi Fontan committed 2014-03-14 15:46:10 +01:00
1 parent 09b840076e
commit 494dfffb38
1 file changed
+1 -1
+1 -1
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