summaryrefslogtreecommitdiff
path: root/scripts/vyatta-output-config.pl
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-08 11:46:46 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-08 11:46:46 -0800
commit8d083d34cc2f6dc592f71f81e60edfdd8582d845 (patch)
treed2c190b0bee969af97618f6907e6f3271219a9df /scripts/vyatta-output-config.pl
parentfabea89d2586a33fb14c8e8fc489dd5fccab803d (diff)
downloadvyatta-cfg-8d083d34cc2f6dc592f71f81e60edfdd8582d845.tar.gz
vyatta-cfg-8d083d34cc2f6dc592f71f81e60edfdd8582d845.zip
hide "password" values in output of "show configuration".
Diffstat (limited to 'scripts/vyatta-output-config.pl')
-rwxr-xr-xscripts/vyatta-output-config.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/vyatta-output-config.pl b/scripts/vyatta-output-config.pl
index 8eb0be8..65169f6 100755
--- a/scripts/vyatta-output-config.pl
+++ b/scripts/vyatta-output-config.pl
@@ -10,6 +10,7 @@ if ($ARGV[0] eq '-all') {
}
if ($ARGV[0] eq '-active') {
shift;
+ VyattaConfigOutput::set_hide_password(1);
VyattaConfigOutput::outputActiveConfig(@ARGV);
} else {
VyattaConfigOutput::outputNewConfig(@ARGV);