diff options
author | Gaurav Sinha <gaurav.sinha@vyatta.com> | 2012-01-09 11:02:15 -0800 |
---|---|---|
committer | Gaurav Sinha <gaurav.sinha@vyatta.com> | 2012-01-09 11:02:15 -0800 |
commit | 26440a0301b0c3e63f9a9e489e08d16f30b38a2e (patch) | |
tree | b180ca08c0d78ad7e2150ca3015775fd5ca4bc7c /scripts | |
parent | 73a7375d317a744c4df80e2b91a49a74bc1e1821 (diff) | |
download | vyatta-op-26440a0301b0c3e63f9a9e489e08d16f30b38a2e.tar.gz vyatta-op-26440a0301b0c3e63f9a9e489e08d16f30b38a2e.zip |
bug 7714: Fixing runtime script error seen in show dns forwarding statistics
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-op-dns-forwarding.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/vyatta-op-dns-forwarding.pl b/scripts/vyatta-op-dns-forwarding.pl index a20cf45..dc5fbf1 100755 --- a/scripts/vyatta-op-dns-forwarding.pl +++ b/scripts/vyatta-op-dns-forwarding.pl @@ -105,7 +105,9 @@ sub get_nameserver_stats { $show_stats_output .= "Server: $nameserver\nQueries sent: $queries_sent\nQueries retried or failed: $queries_retried_failed\n\n"; } } - $show_stats_output .= $show_stats_overrides; + if (defined($show_stats_overrides)) { + $show_stats_output .= $show_stats_overrides; + } } sub print_stats { |