From 45ac9b1795456607fad9744870883489334e9b3c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 19 Nov 2010 15:40:07 -0800 Subject: Fix typo's in logging printf Had wrong version, want to get config command in log, not whole string. --- scripts/vyatta-config-loader.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3