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:
parent
15af612918
commit
34ac8ff03c
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user