diff options
author | Michael Larson <slioch@eng-140.vyatta.com> | 2008-07-10 13:37:49 -0700 |
---|---|---|
committer | Michael Larson <slioch@eng-140.vyatta.com> | 2008-07-10 13:37:49 -0700 |
commit | a2be0181a81adfca6f8fdf7c9b6190244c7146e2 (patch) | |
tree | a773f2fc1e13b29167157ebd985476875ced5afd /scripts/VyattaConfigOutput.pm | |
parent | 42d6c942800e2273b77ea92371ffdcb3f183163f (diff) | |
download | vyatta-cfg-a2be0181a81adfca6f8fdf7c9b6190244c7146e2.tar.gz vyatta-cfg-a2be0181a81adfca6f8fdf7c9b6190244c7146e2.zip |
Revert "fix for bug 3441. Removed def from listOutputNodes(), which allowed other code that filters out def file to be removed."
Need to spend more time with this fix--'def' is used in locations to
suppress non-user specified default values. will reapply revised fix
after a bit more vetting.
This reverts commit 42d6c942800e2273b77ea92371ffdcb3f183163f.
Diffstat (limited to 'scripts/VyattaConfigOutput.pm')
-rwxr-xr-x | scripts/VyattaConfigOutput.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/VyattaConfigOutput.pm b/scripts/VyattaConfigOutput.pm index ab7068f..5358c21 100755 --- a/scripts/VyattaConfigOutput.pm +++ b/scripts/VyattaConfigOutput.pm @@ -138,7 +138,7 @@ sub displayValues { my @cnames = sort keys %cnodes; if (defined($simple_show)) { - if ($show_all) { + if (!$cnodes{'def'} || $show_all) { if ($is_password && $hide_password) { $oval = $HIDE_PASSWORD; } @@ -159,7 +159,7 @@ sub displayValues { $diff = '>'; } } - if ($show_all) { + if (!$cnodes{'def'} || $show_all) { if ($is_password && $hide_password) { $value = $HIDE_PASSWORD; } @@ -194,6 +194,8 @@ sub displayDeletedOrigChildren { if ($cnames[0] eq 'node.val') { displayValues([ @cur_path, $child ], $prefix, $child, $dont_show_as_deleted); + } elsif ($cnames[0] eq 'def') { + #ignore } elsif (scalar($#cnames) >= 0) { if ($is_tag) { @cnames = sort versioncmp @cnames; |