Skip to content

Commit

Permalink
test: Adjust TestFirewall.testNetworkingPage for firewalld 2.0.1
Browse files Browse the repository at this point in the history
Commit 90abd41 only fixed testFirewallPage(). But the counting fix
also needs to be applied to testNetworkingPage().
  • Loading branch information
martinpitt committed Oct 10, 2023
1 parent 25c7cfe commit 591d8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/verify/check-networkmanager-firewall
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class TestFirewall(netlib.NetworkCase):
m = self.machine

def get_num_zones():
return len(m.execute("firewall-cmd --get-active-zones | grep '^[a-zA-Z]'").split())
return int(m.execute("firewall-cmd --get-active-zones | grep --count '^[a-zA-Z]'").strip())

active_zones = get_num_zones()

Expand Down

0 comments on commit 591d8ae

Please sign in to comment.