diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-15 13:21:34 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-15 13:21:34 -0700 |
commit | 68312d5d735861153fbd28e5e3c98000761ca9a2 (patch) | |
tree | 9331197e64735bf62a6330cb0ff01f2d9a841d01 /scripts | |
parent | 2631b297f701250537ed0eeda21d5fe01c67785f (diff) | |
download | vyatta-cfg-qos-68312d5d735861153fbd28e5e3c98000761ca9a2.tar.gz vyatta-cfg-qos-68312d5d735861153fbd28e5e3c98000761ca9a2.zip |
Ignore deleted policy on end test
If policy is deleted, then the end: check is still run, but can
be safely ignored.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-qos.pl | 5 |
1 files changed, 1 insertions, 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; } |