diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-19 15:40:07 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-19 15:40:07 -0800 |
commit | 45ac9b1795456607fad9744870883489334e9b3c (patch) | |
tree | 06abbfb68ed31ded2f472d2a5f8a3171f1c4411e | |
parent | 190aa9f7b3d98bb45d820bd18f32a88c26337798 (diff) | |
download | vyatta-cfg-45ac9b1795456607fad9744870883489334e9b3c.tar.gz vyatta-cfg-45ac9b1795456607fad9744870883489334e9b3c.zip |
Fix typo's in logging printf
Had wrong version, want to get config command in log, not
whole string.
-rwxr-xr-x | scripts/vyatta-config-loader.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-config-loader.pl b/scripts/vyatta-config-loader.pl index 6a5caab..b07c08b 100755 --- a/scripts/vyatta-config-loader.pl +++ b/scripts/vyatta-config-loader.pl @@ -85,9 +85,10 @@ foreach (@all_nodes) { } # Show all commands in log + my $cmd = join ' ', @pr; printf "[%s]\n", $cmd; - my $cmd = "$CWRAPPER set " . (join ' ', @pr); + $cmd = "$CWRAPPER set " . $cmd; unless (system($cmd) == 0) { $cmd =~ s/^.*?set /set /; syslog(LOG_NOTICE, "[[%s]] failed", $cmd); |