summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Young <elyscape@gmail.com>2016-09-09 11:44:15 -0700
committerEli Young <elyscape@gmail.com>2016-09-09 11:44:15 -0700
commit027d55f6b7b22c868501ed37ac97f585d9f60390 (patch)
treef703ad413a665523f11b4d9d2cdbc4c8a52c6518
parenta03ad9d76f1ad45448d8ae18ad9b60f7e84d527a (diff)
downloadopenshift-027d55f6b7b22c868501ed37ac97f585d9f60390.tar.gz
openshift-027d55f6b7b22c868501ed37ac97f585d9f60390.tar.bz2
openshift-027d55f6b7b22c868501ed37ac97f585d9f60390.tar.xz
openshift-027d55f6b7b22c868501ed37ac97f585d9f60390.zip
Always deduplicate detected certificate names
-rw-r--r--filter_plugins/oo_filters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index 7b241e203..eeb04cb4e 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -529,9 +529,9 @@ class FilterModule(object):
raise errors.AnsibleFilterError(("|failed to parse certificate '%s', " % certificate['certfile'] +
"please specify certificate names in host inventory"))
+ certificate['names'] = list(set(certificate['names']))
if 'cafile' not in certificate:
certificate['names'] = [name for name in certificate['names'] if name not in internal_hostnames]
- certificate['names'] = list(set(certificate['names']))
if not certificate['names']:
raise errors.AnsibleFilterError(("|failed to parse certificate '%s' or " % certificate['certfile'] +
"detected a collision with internal hostname, please specify " +