Browse Source

no_proxy: use 'append' to properly add a string to a list

Vadim Rutkovsky 6 years ago
parent
commit
754b4a353d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_facts/library/openshift_facts.py

+ 1 - 1
roles/openshift_facts/library/openshift_facts.py

@@ -834,7 +834,7 @@ def set_proxy_facts(facts):
             common['no_proxy'].append(common['hostname'])
             if 'master' in facts:
                 if 'cluster_hostname' in facts['master']:
-                    common['no_proxy'].extend(facts['master']['cluster_hostname'])
+                    common['no_proxy'].append(facts['master']['cluster_hostname'])
             common['no_proxy'] = ','.join(sort_unique(common['no_proxy']))
         facts['common'] = common