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

Bug #2836: group creation rollback for invalid acl rules

This commit is contained in:
Carlos Martín 2014-04-22 15:31:50 +02:00
parent 85c4b7bd92
commit 0ca4430ef6

View File

@ -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