diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2016-10-13 13:14:13 -0400 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2016-10-13 13:14:13 -0400 |
commit | 9a64840fc11bd466502ae18e556f322447b11781 (patch) | |
tree | 049c0810580c74040009afc70b353df0f73e85a8 /roles/openshift_facts/library | |
parent | 131bcdcd7ee5c3191c748beb7aad8d45c4477b98 (diff) | |
download | openshift-9a64840fc11bd466502ae18e556f322447b11781.tar.gz openshift-9a64840fc11bd466502ae18e556f322447b11781.tar.bz2 openshift-9a64840fc11bd466502ae18e556f322447b11781.tar.xz openshift-9a64840fc11bd466502ae18e556f322447b11781.zip |
update handling of use_dnsmasq
Diffstat (limited to 'roles/openshift_facts/library')
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index 0ee018c5c..cb642e12e 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -501,8 +501,8 @@ def set_dnsmasq_facts_if_unset(facts): """ if 'common' in facts: - facts['common']['use_dnsmasq'] = bool('use_dnsmasq' not in facts['common'] and - safe_get_bool(facts['common']['version_gte_3_2_or_1_2'])) + if 'use_dnsmasq' not in facts['common']: + facts['common']['use_dnsmasq'] = bool(safe_get_bool(facts['common']['version_gte_3_2_or_1_2'])) if 'master' in facts and 'dns_port' not in facts['master']: if safe_get_bool(facts['common']['use_dnsmasq']): facts['master']['dns_port'] = 8053 |