diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2017-03-13 15:24:36 -0400 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2017-03-13 15:49:05 -0400 |
commit | fb215f85478eb7494358777be64dd03534bb5bd6 (patch) | |
tree | 02975ff5b327aa9e95dcb68c6a414c3c498ca887 /roles/openshift_health_checker | |
parent | 3c12d02acd7048ef56ce0baa52c160a25b1fc2cc (diff) | |
download | openshift-fb215f85478eb7494358777be64dd03534bb5bd6.tar.gz openshift-fb215f85478eb7494358777be64dd03534bb5bd6.tar.bz2 openshift-fb215f85478eb7494358777be64dd03534bb5bd6.tar.xz openshift-fb215f85478eb7494358777be64dd03534bb5bd6.zip |
Revert module_utils six for openshift_health_checker
Embedded version of six in Ansible 2.2.1 does not support add_metaclass,
so revert to using python-six.
Diffstat (limited to 'roles/openshift_health_checker')
-rw-r--r-- | roles/openshift_health_checker/openshift_checks/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/__init__.py b/roles/openshift_health_checker/openshift_checks/__init__.py index 50f26765b..8433923ed 100644 --- a/roles/openshift_health_checker/openshift_checks/__init__.py +++ b/roles/openshift_health_checker/openshift_checks/__init__.py @@ -8,9 +8,11 @@ import os from abc import ABCMeta, abstractmethod, abstractproperty from importlib import import_module +# add_metaclass is not available in the embedded six from module_utils in Ansible 2.2.1 +from six import add_metaclass # 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 +from ansible.module_utils.six.moves import reduce # pylint: disable=import-error, redefined-builtin class OpenShiftCheckException(Exception): |