You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. It would make sense to either fail or deal with it like a declaration and do nothing, as there'd be nothing to do in this case. Will investigate.
The issue is that you're creating a list of duplicate items and adding that to hosts. If instead you instantiated hosts first and added each item, then you wouldn't get duplicates, i.e.
The reason this happens is that the code is looking for duplicates being applied to existing hosts, not checking if the new hosts you're adding contain duplicates. I'll think about de-duplicating incoming hosts before adding, but think this really is an edge case.
Running the following program
gives this content in
testhosts
I would expect the entry to be present only once.
Thanks for the module. Saved me a lot of time.
The text was updated successfully, but these errors were encountered: