summaryrefslogtreecommitdiff
path: root/scripts/vyatta-config-mgmt.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-config-mgmt.pl')
-rwxr-xr-xscripts/vyatta-config-mgmt.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-config-mgmt.pl b/scripts/vyatta-config-mgmt.pl
index 43e89f4..a28942a 100755
--- a/scripts/vyatta-config-mgmt.pl
+++ b/scripts/vyatta-config-mgmt.pl
@@ -327,7 +327,8 @@ if ($action eq 'rollback') {
# Should have code to validate config, but for now only
# called internally. If we later expose this to cli
# we'll need to prompt for confirmation.
- $rollback_config = cm_read_file($filename);
+ my @lines = cm_read_file($filename);
+ $rollback_config = join("\n", @lines);
}
if (!defined $method) {
die "Error: must define either revnum or file";