commit | c8f6882f5dd29a0f7f61bf88d41609d61288b0b0 | [log] [tgz] |
---|---|---|
author | Olivier Bourdon <obourdon@mirantis.com> | Wed Sep 13 13:35:22 2017 +0200 |
committer | Olivier Bourdon <obourdon@mirantis.com> | Wed Sep 13 14:45:09 2017 +0200 |
tree | e6c445676633ebcd5c755581ec7df18f6d70c3de | |
parent | 3bf8d2adab2398eb4c7936b6f39ec320c93f0867 [diff] |
Remove duplicate names in IP entries list Change-Id: I130d81ee954e001b7f79a25c5390c36bb37670d7
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)