summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/Vyatta/ConfigOutput.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/ConfigOutput.pm b/lib/Vyatta/ConfigOutput.pm
index b82600d..c2981c5 100755
--- a/lib/Vyatta/ConfigOutput.pm
+++ b/lib/Vyatta/ConfigOutput.pm
@@ -353,7 +353,7 @@ sub outputNewConfig {
displayChildren(\%rnodes, [ @_ ], '');
}
} else {
- if (defined($config->existsOrig()) && !defined($config->exists())) {
+ if ($config->existsOrig() && ! $config->exists()) {
# this is a deleted node
print 'Configuration under "' . (join ' ', @_) . "\" has been deleted\n";
} elsif (!defined($config->getTmplPath(\@_))) {