commit | ec02a7a2aa2cd091ea1d0a59d10ea3a2ae2740f4 | [log] [tgz] |
---|---|---|
author | Ales Komarek <akomarek@mirantis.com> | Tue Sep 19 09:09:19 2017 +0000 |
committer | Gerrit Code Review <gerrit2@5535367c947d> | Tue Sep 19 09:09:19 2017 +0000 |
tree | 976eccf5ff8d5a2e4ee602e3067f6d79d044d259 | |
parent | 0ab8d278121964a430d36afe80bdf361f63c0c43 [diff] | |
parent | c8f6882f5dd29a0f7f61bf88d41609d61288b0b0 [diff] |
Merge "Remove duplicate names in IP entries list"
diff --git a/_modules/linux_hosts.py b/_modules/linux_hosts.py index 08741ec..78853bd 100644 --- a/_modules/linux_hosts.py +++ b/_modules/linux_hosts.py
@@ -24,4 +24,4 @@ if iterable is None or isinstance(iterable, Undefined): return iterable # Do effective custom sorting of iterable here - return sorted(iterable, cmp=fqdn_sort_fn) + return sorted(set(iterable), cmp=fqdn_sort_fn)