summaryrefslogtreecommitdiffstats
path: root/install/tools/ipactl
diff options
context:
space:
mode:
authorDavid Kupka <dkupka@redhat.com>2015-08-27 07:34:02 +0200
committerTomas Babej <tbabej@redhat.com>2015-10-13 13:59:30 +0200
commit5ff4170ff9cab64d3527001de8214cb30439e3e3 (patch)
treea92bbce1863483e13fcfaec8113b66dba41d399f /install/tools/ipactl
parent9d7abfaf7a97f3ea0831d1870898c00b7e8d93e3 (diff)
downloadfreeipa-5ff4170ff9cab64d3527001de8214cb30439e3e3.tar.gz
freeipa-5ff4170ff9cab64d3527001de8214cb30439e3e3.tar.xz
freeipa-5ff4170ff9cab64d3527001de8214cb30439e3e3.zip
comment: Add Documentation string to deduplicate function
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'install/tools/ipactl')
-rwxr-xr-xinstall/tools/ipactl3
1 files changed, 3 insertions, 0 deletions
diff --git a/install/tools/ipactl b/install/tools/ipactl
index c01804397..7be9e84ef 100755
--- a/install/tools/ipactl
+++ b/install/tools/ipactl
@@ -48,6 +48,9 @@ def check_IPA_configuration():
"(see man pages of ipa-server-install for help)", 6)
def deduplicate(lst):
+ """Remove duplicates and preserve order.
+ Returns copy of list with preserved order and removed duplicates.
+ """
new_lst = []
s = set(lst)
for i in lst: