diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-20 17:28:47 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-20 17:28:47 -0800 |
commit | 68df52c1edbf843e6fb56de3578f18fba80799c4 (patch) | |
tree | bf9b0c18767d6e8c1439648e8b0d455832aa669f /scripts | |
parent | ab19102a564790b94c1919430fbdeb38a8c23377 (diff) | |
download | vyatta-cfg-68df52c1edbf843e6fb56de3578f18fba80799c4.tar.gz vyatta-cfg-68df52c1edbf843e6fb56de3578f18fba80799c4.zip |
This loop should not be iterating over deleted nodes. Related to Bug 2340.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/VyattaConfig.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/VyattaConfig.pm b/scripts/VyattaConfig.pm index ecaf545..6f99329 100644 --- a/scripts/VyattaConfig.pm +++ b/scripts/VyattaConfig.pm @@ -330,9 +330,9 @@ sub listNodeStatus { foreach $node (@nodes) { if ($node =~ /.+/) { #print "DEBUG VyattaConfig->listNodeStatus(): node $node\n"; + # No deleted nodes -- added, changed, ot static only. if ($self->isAdded("$path $node")) { $nodehash{$node} = "added"; } elsif ($self->isChanged("$path $node")) { $nodehash{$node} = "changed"; } - elsif ($self->isDeleted("$path $node")) { $nodehash{$node} = "deleted"; } else { $nodehash{$node} = "static"; } } } |