summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2015-10-26 16:58:23 -0400
committerAndrew Butcher <abutcher@redhat.com>2015-10-26 17:04:29 -0400
commit0944fc8957085bc14b93ed91fc1d74bf4ec12f44 (patch)
tree338e1c39ab803a58e477554bf51ca9c1067b419e /roles/openshift_facts
parent593d2b0c296a9f264f0f0ae927f468c978e30176 (diff)
downloadopenshift-0944fc8957085bc14b93ed91fc1d74bf4ec12f44.tar.gz
openshift-0944fc8957085bc14b93ed91fc1d74bf4ec12f44.tar.bz2
openshift-0944fc8957085bc14b93ed91fc1d74bf4ec12f44.tar.xz
openshift-0944fc8957085bc14b93ed91fc1d74bf4ec12f44.zip
Pylint fixes
Diffstat (limited to 'roles/openshift_facts')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index 4880e0bcb..3afbbbbb3 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -362,7 +362,7 @@ def set_metrics_facts_if_unset(facts):
facts['common']['use_cluster_metrics'] = use_cluster_metrics
return facts
-def set_project_config_facts_if_unset(facts):
+def set_project_cfg_facts_if_unset(facts):
""" Set Project Configuration facts if not already present in facts dict
dict:
Args:
@@ -373,7 +373,7 @@ def set_project_config_facts_if_unset(facts):
"""
- config={
+ config = {
'default_node_selector': '',
'project_request_message': '',
'project_request_template': '',
@@ -383,7 +383,7 @@ def set_project_config_facts_if_unset(facts):
}
if 'master' in facts:
- for key,value in config.items():
+ for key, value in config.items():
if key not in facts['master']:
facts['master'][key] = value
@@ -834,7 +834,7 @@ class OpenShiftFacts(object):
facts = merge_facts(facts, local_facts)
facts['current_config'] = get_current_config(facts)
facts = set_url_facts_if_unset(facts)
- facts = set_project_config_facts_if_unset(facts)
+ facts = set_project_cfg_facts_if_unset(facts)
facts = set_fluentd_facts_if_unset(facts)
facts = set_node_schedulability(facts)
facts = set_master_selectors(facts)