diff options
-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; } |