diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-04 11:01:02 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-04 11:01:02 -0800 |
commit | fc8d551687df0c874e6262b5ec7ebb574f2b1980 (patch) | |
tree | 5e6d904c7de3e8af984e206b1d938cceb319065a /lib/Vyatta/ConfigOutput.pm | |
parent | 9f171d3f9c52c9be5fa281d9b7d8ad7c22f66c27 (diff) | |
download | vyatta-cfg-fc8d551687df0c874e6262b5ec7ebb574f2b1980.tar.gz vyatta-cfg-fc8d551687df0c874e6262b5ec7ebb574f2b1980.zip |
Vyatta::ConfigOutput - test for exists should not use defined
exists returns a boolean so no need to explicitly check for
defined.
Diffstat (limited to 'lib/Vyatta/ConfigOutput.pm')
-rwxr-xr-x | lib/Vyatta/ConfigOutput.pm | 2 |
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(\@_))) { |