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

Feature #3175: Prevent deadlocks

This commit is contained in:
Jaime Melis 2014-11-03 18:52:22 +01:00
parent 86be6b2764
commit c512885b78

View File

@ -517,6 +517,7 @@ class OpenNebulaSG < OpenNebulaNetwork
begin
commands.run!
rescue Exception => e
unlock
raise OpenNebulaSGError.new(:bootstrap, e)
end
@ -533,6 +534,7 @@ class OpenNebulaSG < OpenNebulaNetwork
begin
sg.run!
rescue Exception => e
unlock
raise OpenNebulaSGError.new(:security_groups, e)
end
end