From fc8d551687df0c874e6262b5ec7ebb574f2b1980 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 4 Feb 2009 11:01:02 -0800 Subject: Vyatta::ConfigOutput - test for exists should not use defined exists returns a boolean so no need to explicitly check for defined. --- lib/Vyatta/ConfigOutput.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Vyatta/ConfigOutput.pm') 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(\@_))) { -- cgit v1.2.3