Skip to content
Snippets Groups Projects
Commit 27dd55b5 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

module_utils/ansible_ipa_client.py: Fix client module util to work with python3

parent 747ec875
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,8 @@ if NUM_VERSION >= 40400: ...@@ -42,6 +42,8 @@ if NUM_VERSION >= 40400:
import inspect import inspect
import logging import logging
import six
try: try:
from ipaclient.install import ipadiscovery from ipaclient.install import ipadiscovery
except ImportError: except ImportError:
...@@ -154,6 +156,9 @@ if NUM_VERSION >= 40400: ...@@ -154,6 +156,9 @@ if NUM_VERSION >= 40400:
from ipapython.ipautil import realm_to_suffix, run from ipapython.ipautil import realm_to_suffix, run
if six.PY3:
unicode = str
try: try:
from ipaclient.install import ntpconf from ipaclient.install import ntpconf
except ImportError: except ImportError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment