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

Bug #2721: Add error check in onegroup creation

This commit is contained in:
Tino Vazquez 2014-02-28 17:09:38 +01:00
parent 15af612918
commit 34ac8ff03c

View File

@ -41,6 +41,10 @@ class OneGroupHelper < OpenNebulaHelper::OneHelper
exit_code , msg = group.create_default_acls
if OpenNebula.is_error?(exit_code)
return -1, exit_code.message
end
exit_code.to_i
end