Skip to content

Commit

Permalink
Merge pull request #169 from freenas/issues/bridgecmd-11.2-u2.1
Browse files Browse the repository at this point in the history
We now call the bridge_cmd if the variable is added (#167)
  • Loading branch information
william-gr authored Feb 26, 2019
2 parents 402e78d + 2106657 commit e400148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iocage_lib/ioc_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,11 +968,11 @@ def find_bridge_mtu(self, bridge):
bridge_cmd = [
"ifconfig", bridge, "create", "addm", default_if
]
su.check_call(bridge_cmd, stdout=su.PIPE, stderr=su.PIPE)

else:
bridge_cmd = ["ifconfig", bridge, "create", "addm"]

su.check_call(bridge_cmd, stdout=su.PIPE, stderr=su.PIPE)
su.check_call(bridge_cmd, stdout=su.PIPE, stderr=su.PIPE)
except su.CalledProcessError:
# The bridge already exists, this is just best effort.
pass
Expand Down

0 comments on commit e400148

Please sign in to comment.