summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-11-27 18:26:57 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-11-27 18:26:57 -0800
commite9a1afa57971cc00be0d8cb8583b123b6fb7439c (patch)
tree989e50d774a5b014473f7c6dafb8abfb487ec24e /scripts
parent0412198b9f339ac66be18e04a73d4366ebb86116 (diff)
downloadvyatta-cfg-e9a1afa57971cc00be0d8cb8583b123b6fb7439c.tar.gz
vyatta-cfg-e9a1afa57971cc00be0d8cb8583b123b6fb7439c.zip
handle type-less leaf node for "show"
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/VyattaConfigOutput.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/VyattaConfigOutput.pm b/scripts/VyattaConfigOutput.pm
index 8b43c18..a1e999b 100755
--- a/scripts/VyattaConfigOutput.pm
+++ b/scripts/VyattaConfigOutput.pm
@@ -256,7 +256,7 @@ sub outputNewConfig {
displayChildren(\%rnodes, [ @_ ], '');
}
} else {
- if (defined($config->existsOrig())) {
+ if (defined($config->existsOrig()) && !defined($config->exists())) {
# this is a deleted node
print 'Configuration under "' . (join ' ', @_) . "\" has been deleted\n";
} else {