Commit 1bb37ec
committed
Simplify logic in UpdateDNSNameMappings
Previously, we were always updating the ipToDNSName in place, but a
recent change was made to use a local copy instead. With that in place,
we no longer need to first remove old and then add new IPs to te map.
Instead we can just construct the new one only with the new IPs and
reassign it.
Signed-off-by: Kevin Klues <kklues@nvidia.com>1 parent 541f28b commit 1bb37ec
1 file changed
+3
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
78 | 77 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 78 | | |
95 | 79 | | |
96 | 80 | | |
| |||
0 commit comments