Skip to content

Commit

Permalink
firewall: do not assign default zone, but pass as is (bsc#1109147)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtorrero committed Oct 1, 2018
1 parent 350a23b commit 01bc293
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions extensions/firewall
Expand Up @@ -66,10 +66,7 @@ firewalld_up()
test "X$WICKED_INTERFACE_NAME" = "X" && return 1

local ZONE=`wicked_config_get_zone "$WICKED_ARGFILE"`
if test "X$ZONE" = "X" ; then
ZONE=`"$firewalld_cmd" --get-default-zone 2>/dev/null`
test "X$ZONE" = "X" && return 1
fi

"$firewalld_cmd" --zone="$ZONE" --change-interface="$WICKED_INTERFACE_NAME" &>/dev/null
}

Expand Down

0 comments on commit 01bc293

Please sign in to comment.