Browse Source

Merge pull request #3641 from detiber/fixSixError

Merged by openshift-bot
OpenShift Bot 8 years ago
parent
commit
0ee1457352

+ 1 - 0
roles/openshift_facts/vars/main.yml

@@ -2,6 +2,7 @@
 required_packages:
 required_packages:
   - iproute
   - iproute
   - python-dbus
   - python-dbus
+  - python-six
   - PyYAML
   - PyYAML
   - yum-utils
   - yum-utils
 
 

+ 3 - 1
roles/openshift_health_checker/openshift_checks/__init__.py

@@ -8,9 +8,11 @@ import os
 from abc import ABCMeta, abstractmethod, abstractproperty
 from abc import ABCMeta, abstractmethod, abstractproperty
 from importlib import import_module
 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
 # pylint import-error disabled because pylint cannot find the package
 # when installed in a virtualenv
 # 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):
 class OpenShiftCheckException(Exception):