summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-19 15:40:07 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-19 15:40:07 -0800
commit45ac9b1795456607fad9744870883489334e9b3c (patch)
tree06abbfb68ed31ded2f472d2a5f8a3171f1c4411e /scripts
parent190aa9f7b3d98bb45d820bd18f32a88c26337798 (diff)
downloadvyatta-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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-config-loader.pl3
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);