mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 10:23:58 +09:00
Bug #2836: group creation rollback for invalid acl rules
This commit is contained in:
1 parent
85c4b7bd92
commit
0ca4430ef6
1 file changed
+1
@@ -118,6 +118,7 @@ module OpenNebula
|
||||
rc, msg = create_default_acls(group_hash[:resources])
|
||||
|
||||
if OpenNebula.is_error?(rc)
|
||||
self.delete
|
||||
error_msg = "Error creating group ACL's: #{rc.message}"
|
||||
return OpenNebula::Error.new(error_msg)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user