summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);