diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2017-03-09 13:50:33 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2017-03-09 13:50:33 -0500 |
commit | 1100f5a76dff38a1f191f7b3ae42ec13bfc3c43e (patch) | |
tree | 424cb5d71bbfc1aa1e350aca5c0ca04147d14978 /roles | |
parent | 2e37c702c8d4c3778d172d8e886f68e23d4aeebc (diff) | |
download | openshift-1100f5a76dff38a1f191f7b3ae42ec13bfc3c43e.tar.gz openshift-1100f5a76dff38a1f191f7b3ae42ec13bfc3c43e.tar.bz2 openshift-1100f5a76dff38a1f191f7b3ae42ec13bfc3c43e.tar.xz openshift-1100f5a76dff38a1f191f7b3ae42ec13bfc3c43e.zip |
Use ansible.compat.six where possible
Diffstat (limited to 'roles')
3 files changed, 13 insertions, 5 deletions
diff --git a/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py b/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py index 78e8747ed..c204b5341 100644 --- a/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py +++ b/roles/openshift_certificate_expiry/library/openshift_cert_expiry.py @@ -10,8 +10,9 @@ import os import subprocess import yaml -from ansible.module_utils.six.moves import configparser - +# pylint import-error disabled because pylint cannot find the package +# when installed in a virtualenv +from ansible.module_utils.six.moves import configparser # pylint: disable=import-error from ansible.module_utils.basic import AnsibleModule try: diff --git a/roles/openshift_health_checker/openshift_checks/__init__.py b/roles/openshift_health_checker/openshift_checks/__init__.py index b410574a6..50f26765b 100644 --- a/roles/openshift_health_checker/openshift_checks/__init__.py +++ b/roles/openshift_health_checker/openshift_checks/__init__.py @@ -2,12 +2,15 @@ Health checks for OpenShift clusters. """ +import operator import os + from abc import ABCMeta, abstractmethod, abstractproperty from importlib import import_module -import operator -from ansible.module_utils.six.moves import add_metaclass, reduce +# pylint import-error disabled because pylint cannot find the package +# when installed in a virtualenv +from ansible.module_utils.six.moves import add_metaclass, reduce # pylint: disable=import-error, redefined-builtin class OpenShiftCheckException(Exception): diff --git a/roles/openshift_master_facts/filter_plugins/openshift_master.py b/roles/openshift_master_facts/filter_plugins/openshift_master.py index db24028cd..01806c97f 100644 --- a/roles/openshift_master_facts/filter_plugins/openshift_master.py +++ b/roles/openshift_master_facts/filter_plugins/openshift_master.py @@ -7,12 +7,16 @@ Custom filters for use in openshift-master import copy import sys +# pylint import-error disabled because pylint cannot find the package +# when installed in a virtualenv from distutils.version import LooseVersion # pylint: disable=no-name-in-module,import-error from ansible import errors from ansible.parsing.yaml.dumper import AnsibleDumper from ansible.plugins.filter.core import to_bool as ansible_bool -from six import string_types +# pylint import-error disabled because pylint cannot find the package +# when installed in a virtualenv +from ansible.compat.six import string_types # pylint: disable=no-name-in-module,import-error import yaml |