summaryrefslogtreecommitdiff
path: root/scripts/VyattaConfig.pm
diff options
context:
space:
mode:
authorrbalocca <rbalocca@fugazi.vyatta.com>2008-01-19 15:56:28 -0800
committerrbalocca <rbalocca@fugazi.vyatta.com>2008-01-19 15:56:28 -0800
commitaafe4960be8583a95c5961a8a13142abd70a7627 (patch)
treee59850fb3ea82956b8595b3bfe84e19416c4c3e1 /scripts/VyattaConfig.pm
parent43accc31c5d6d7cfe1e820d80d3042e335ebad3d (diff)
downloadvyatta-cfg-aafe4960be8583a95c5961a8a13142abd70a7627.tar.gz
vyatta-cfg-aafe4960be8583a95c5961a8a13142abd70a7627.zip
Revert "Check for undefined values before using them"
This reverts commit 43accc31c5d6d7cfe1e820d80d3042e335ebad3d.
Diffstat (limited to 'scripts/VyattaConfig.pm')
-rw-r--r--scripts/VyattaConfig.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/VyattaConfig.pm b/scripts/VyattaConfig.pm
index 15837d4..6c37073 100644
--- a/scripts/VyattaConfig.pm
+++ b/scripts/VyattaConfig.pm
@@ -345,19 +345,12 @@ sub listNodeStatus {
my %nodehash = ();
# find deleted nodes first
- if(!$self || !$path ) {
- return %nodehash;
- }
-
@nodes = $self->listDeleted("$path");
- if(!@nodes) {
- return %nodehash;
- }
-
foreach my $node (@nodes) {
if ($node =~ /.+/) { $nodehash{$node} = "deleted" };
}
+ @nodes = ();
@nodes = $self->listNodes("$path");
foreach my $node (@nodes) {
if ($node =~ /.+/) {