diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2016-11-28 15:32:46 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2016-11-29 12:41:14 -0500 |
commit | cef42e2541f7ddeaf284b1350eed7f4e46234fe9 (patch) | |
tree | ec51eb6d9dc1d48daf336054ea5688e0f3107f13 /filter_plugins/openshift_node.py | |
parent | e5f352d6f7c7bd91c2784152a8805f6e22f407db (diff) | |
download | openshift-cef42e2541f7ddeaf284b1350eed7f4e46234fe9.tar.gz openshift-cef42e2541f7ddeaf284b1350eed7f4e46234fe9.tar.bz2 openshift-cef42e2541f7ddeaf284b1350eed7f4e46234fe9.tar.xz openshift-cef42e2541f7ddeaf284b1350eed7f4e46234fe9.zip |
update tests and flake8/pylint fixes
Diffstat (limited to 'filter_plugins/openshift_node.py')
-rw-r--r-- | filter_plugins/openshift_node.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/filter_plugins/openshift_node.py b/filter_plugins/openshift_node.py index 22670cf79..8c7302052 100644 --- a/filter_plugins/openshift_node.py +++ b/filter_plugins/openshift_node.py @@ -6,6 +6,7 @@ Custom filters for use in openshift-node ''' from ansible import errors + class FilterModule(object): ''' Custom ansible filters for use by openshift_node role''' @@ -23,7 +24,7 @@ class FilterModule(object): raise errors.AnsibleFilterError("|failed expects hostvars is a dict") # We always use what they've specified if they've specified a value - if openshift_dns_ip != None: + if openshift_dns_ip is not None: return openshift_dns_ip if bool(hostvars['openshift']['common']['use_dnsmasq']): |