diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-05 11:19:35 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-05 11:19:35 -0800 |
commit | efe5aea36400ea839c38055576a8fb44bab6a04e (patch) | |
tree | 8a3fb69c5f0d2fa556ff034c7961368909f920a2 /scripts/VyattaConfigOutput.pm | |
parent | f61275805c551b81337b90c91da957a428f6bcaf (diff) | |
download | vyatta-cfg-efe5aea36400ea839c38055576a8fb44bab6a04e.tar.gz vyatta-cfg-efe5aea36400ea839c38055576a8fb44bab6a04e.zip |
fix for bug 2734: different messages for "empty" and "invalid".
Diffstat (limited to 'scripts/VyattaConfigOutput.pm')
-rwxr-xr-x | scripts/VyattaConfigOutput.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/VyattaConfigOutput.pm b/scripts/VyattaConfigOutput.pm index 861316a..5f92c15 100755 --- a/scripts/VyattaConfigOutput.pm +++ b/scripts/VyattaConfigOutput.pm @@ -283,8 +283,10 @@ sub outputNewConfig { if (defined($config->existsOrig()) && !defined($config->exists())) { # this is a deleted node print 'Configuration under "' . (join ' ', @_) . "\" has been deleted\n"; + } elsif (!defined($config->getTmplPath(\@_))) { + print "Specified configuration path is not valid\n"; } else { - print "Current configuration is empty\n"; + print 'Configuration under "' . (join ' ', @_) . "\" is empty\n"; } } } |