From c352393e283904647821ce2369ffbed5c38dfb05 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 2 Aug 2010 15:44:26 -0700 Subject: new API change * return of isActive() was inverted in original API. --- scripts/zone-mgmt/vyatta-zone.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/zone-mgmt/vyatta-zone.pl b/scripts/zone-mgmt/vyatta-zone.pl index b0d7286f..c6771e25 100755 --- a/scripts/zone-mgmt/vyatta-zone.pl +++ b/scripts/zone-mgmt/vyatta-zone.pl @@ -720,9 +720,9 @@ sub check_zones_validity { sub check_fwruleset_isActive { my ($ruleset_type, $ruleset_name) = @_; - my $error = Vyatta::Zone::is_fwruleset_active('isActive', - $ruleset_type, $ruleset_name); - return "Invalid firewall ruleset $ruleset_type $ruleset_name" if $error; + my $ret = Vyatta::Zone::is_fwruleset_active('isActive', $ruleset_type, + $ruleset_name); + return "Invalid firewall ruleset $ruleset_type $ruleset_name" if (!$ret); return; } -- cgit v1.2.3