summaryrefslogtreecommitdiff
path: root/scripts/vyatta-save-config.pl
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-07-14 19:39:03 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-07-15 11:59:04 -0500
commite396460d35f11b95434e5f08d6376859b0eb5bcd (patch)
tree0f46dbaae130c0e15e509893a59c5aba7fc55aa3 /scripts/vyatta-save-config.pl
parent63ce0b05d99225496f31ba9fd444ab2fefdc37e9 (diff)
downloadvyatta-cfg-e396460d35f11b95434e5f08d6376859b0eb5bcd.tar.gz
vyatta-cfg-e396460d35f11b95434e5f08d6376859b0eb5bcd.zip
Bugfix 7331: better fix for the bug
(cherry picked from commit fdac525b7596f1b18c201bdcd5923d3e76453ebd)
Diffstat (limited to 'scripts/vyatta-save-config.pl')
-rwxr-xr-xscripts/vyatta-save-config.pl3
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl
index 6dc833c..00f5854 100755
--- a/scripts/vyatta-save-config.pl
+++ b/scripts/vyatta-save-config.pl
@@ -107,9 +107,6 @@ my $show_cmd = 'cli-shell-api showConfig --show-active-only --show-ignore-edit';
if ($show_default) {
$show_cmd .= ' --show-show-defaults';
}
-# add a sed command to remove unwanted configuration comments.
-$show_cmd .= "| sed -e \'/--- CONFIGURATION COMMENTED OUT DURING MIGRATION BELOW ---/";
-$show_cmd .= ",/--- CONFIGURATION COMMENTED OUT DURING MIGRATION ABOVE ---/d\'";
open(my $show_fd, '-|', $show_cmd) or die 'Cannot execute config output';
while (<$show_fd>) {
print;