summaryrefslogtreecommitdiff
path: root/scripts/VyattaConfig.pm
diff options
context:
space:
mode:
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 =~ /.+/) {