diff options
author | rbalocca <rbalocca@fugazi.vyatta.com> | 2008-01-19 15:56:28 -0800 |
---|---|---|
committer | rbalocca <rbalocca@fugazi.vyatta.com> | 2008-01-19 15:56:28 -0800 |
commit | aafe4960be8583a95c5961a8a13142abd70a7627 (patch) | |
tree | e59850fb3ea82956b8595b3bfe84e19416c4c3e1 /scripts/VyattaConfig.pm | |
parent | 43accc31c5d6d7cfe1e820d80d3042e335ebad3d (diff) | |
download | vyatta-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.pm | 9 |
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 =~ /.+/) { |