B #4794: Allow rc=2 when creating bridge

As this action is potentialy racy
rc=2 is for `RTNETLINK answers: File exists`
This commit is contained in:
Jan Orel committed 2020-05-26 14:21:48 +02:00
1 parent 66579c5525
commit 8797006ca5
1 file changed
+1 -1
+1 -1
View File
@@ -147,7 +147,7 @@ module VNMMAD
return if @bridges.key?(@nic[:bridge])
OpenNebula.exec_and_log("#{command(:ip)} link add name " \
"#{@nic[:bridge]} type bridge #{list_bridge_options}")
"#{@nic[:bridge]} type bridge #{list_bridge_options}", nil, 2)
@bridges[@nic[:bridge]] = []