summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-10-26 17:11:37 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-10-26 17:11:37 -0400
commit2f02c464904551e8018e0afc47bcde850ed8d0f1 (patch)
tree338e1c39ab803a58e477554bf51ca9c1067b419e
parent593d2b0c296a9f264f0f0ae927f468c978e30176 (diff)
parent0944fc8957085bc14b93ed91fc1d74bf4ec12f44 (diff)
downloadopenshift-2f02c464904551e8018e0afc47bcde850ed8d0f1.tar.gz
openshift-2f02c464904551e8018e0afc47bcde850ed8d0f1.tar.bz2
openshift-2f02c464904551e8018e0afc47bcde850ed8d0f1.tar.xz
openshift-2f02c464904551e8018e0afc47bcde850ed8d0f1.zip
Merge pull request #745 from abutcher/pylint
Pylint fixes
-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)