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 /roles/openshift_certificate_expiry | |
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 'roles/openshift_certificate_expiry')
-rw-r--r-- | roles/openshift_certificate_expiry/filter_plugins/oo_cert_expiry.py | 24 | ||||
-rw-r--r-- | roles/openshift_certificate_expiry/library/openshift_cert_expiry.py | 3 |
2 files changed, 2 insertions, 25 deletions
diff --git a/roles/openshift_certificate_expiry/filter_plugins/oo_cert_expiry.py b/roles/openshift_certificate_expiry/filter_plugins/oo_cert_expiry.py index 2e2430ee6..bedd23fe8 100644 --- a/roles/openshift_certificate_expiry/filter_plugins/oo_cert_expiry.py +++ b/roles/openshift_certificate_expiry/filter_plugins/oo_cert_expiry.py @@ -5,29 +5,6 @@ Custom filters for use in openshift-ansible """ -from ansible import errors -from collections import Mapping -from distutils.util import strtobool -from distutils.version import LooseVersion -from operator import itemgetter -import OpenSSL.crypto -import os -import pdb -import pkg_resources -import re -import json -import yaml -from ansible.parsing.yaml.dumper import AnsibleDumper -from urlparse import urlparse - -try: - # ansible-2.2 - # ansible.utils.unicode.to_unicode is deprecated in ansible-2.2, - # ansible.module_utils._text.to_text should be used instead. - from ansible.module_utils._text import to_text -except ImportError: - # ansible-2.1 - from ansible.utils.unicode import to_unicode as to_text # Disabling too-many-public-methods, since filter methods are necessarily # public @@ -80,7 +57,6 @@ Example playbook usage: return json_result - def filters(self): """ returns a mapping of filters to methods """ return { diff --git a/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py b/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py index 2cdb87dc1..e838eb2d4 100644 --- a/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py +++ b/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py @@ -628,10 +628,11 @@ an OpenShift Container Platform cluster changed=False ) + ###################################################################### # It's just the way we do things in Ansible. So disable this warning # # pylint: disable=wrong-import-position,import-error -from ansible.module_utils.basic import AnsibleModule +from ansible.module_utils.basic import AnsibleModule # noqa: E402 if __name__ == '__main__': main() |