diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-06-09 14:46:25 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-06-09 14:46:25 -0700 |
commit | 9c6579abd73e80781e34fc71d5de1ef81cd6f36a (patch) | |
tree | c1146b212d207639379eeb27911a55611f30bbb0 /lib | |
parent | e3877f52480fa23066ec1a878ebe078569ed3127 (diff) | |
parent | 2bc58238bc4ee5136bf31719b7c7a2435c8012b0 (diff) | |
download | vyatta-cfg-9c6579abd73e80781e34fc71d5de1ef81cd6f36a.tar.gz vyatta-cfg-9c6579abd73e80781e34fc71d5de1ef81cd6f36a.zip |
Merge branch 'larkspur' of mohit@git.vyatta.com:/git/vyatta-cfg into larkspur
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Config.pm | 2 | ||||
-rwxr-xr-x | lib/Vyatta/ConfigOutput.pm | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm index 4ae578c..4c149cf 100755 --- a/lib/Vyatta/Config.pm +++ b/lib/Vyatta/Config.pm @@ -1,4 +1,4 @@ -# Author: An-Cheng Huang <ancheng@vyatta.com> +# Author: Vyatta <eng@vyatta.com> # Date: 2007 # Description: vyatta configuration parser diff --git a/lib/Vyatta/ConfigOutput.pm b/lib/Vyatta/ConfigOutput.pm index c92cee4..09713f9 100755 --- a/lib/Vyatta/ConfigOutput.pm +++ b/lib/Vyatta/ConfigOutput.pm @@ -1,4 +1,4 @@ -# Author: An-Cheng Huang <ancheng@vyatta.com> +# Author: Vyatta <eng@vyatta.com> # Date: 2007 # Description: Perl module for generating output of the configuration. @@ -143,7 +143,8 @@ sub displayValues { my @cnames = sort keys %cnodes; if (defined($simple_show)) { - if (!$cnodes{'def'} || $show_all) { + if (!defined($cnodes{'def'}) or $cnodes{'def'} eq 'deleted' + or $show_all) { if ($is_password && $hide_password) { $oval = $HIDE_PASSWORD; } @@ -164,15 +165,14 @@ sub displayValues { $diff = '>'; } } - if (!$cnodes{'def'} || $show_all) { + # also need to handle the case where def marker is deleted. + if (!defined($cnodes{'def'}) or $cnodes{'def'} eq 'deleted' + or $show_all) { if ($is_password && $hide_password) { $value = $HIDE_PASSWORD; } print "$dis$diff$prefix$name $value\n"; } - elsif ($cnodes{'def'} && ($diff eq '>' || $diff eq '-')) { - print "$dis$diff$prefix$name $value\n"; - } } } |