summaryrefslogtreecommitdiff
path: root/scripts/VyattaConfigOutput.pm
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-05 11:19:35 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-05 11:19:35 -0800
commitefe5aea36400ea839c38055576a8fb44bab6a04e (patch)
tree8a3fb69c5f0d2fa556ff034c7961368909f920a2 /scripts/VyattaConfigOutput.pm
parentf61275805c551b81337b90c91da957a428f6bcaf (diff)
downloadvyatta-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-xscripts/VyattaConfigOutput.pm4
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";
}
}
}