Commit 6dc0c87
committed
refactor(discover): move dedup maps outside node loop
Deduplication maps for BMC managers and Systems were declared within the
loop that iterates over each node, which is where duplication checks
happen. This is obviously futile, so the declarations are moved outside
of the loop so that the checks occur properly.
Most testing has used a single unique BMC per node, which is probably
why this was not caught earlier.
Signed-off-by: Devon Bautista <17506592+synackd@users.noreply.github.com>1 parent b887949 commit 6dc0c87
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
| |||
0 commit comments