From c22deb0c01bb270c61ff3aabd71c533567c293f7 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 15 Jun 2009 13:21:34 -0700 Subject: Ignore deleted policy on end test If policy is deleted, then the end: check is still run, but can be safely ignored. (cherry picked from commit 68312d5d735861153fbd28e5e3c98000761ca9a2) --- scripts/vyatta-qos.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl index 2576af1..9844d06 100755 --- a/scripts/vyatta-qos.pl +++ b/scripts/vyatta-qos.pl @@ -234,11 +234,8 @@ sub apply_policy { foreach my $args (@usedby) { update_interface( @$args ); } - } else { + } elsif (my $policy = find_policy($name)) { # Recheck the policy, might have new errors. - my $policy = find_policy($name); - die "Unknown policy name $name\n" unless $policy; - my $shaper = make_policy( $policy, $name ); exit 1 unless $shaper; } -- cgit v1.2.3