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

library/ipahost.py: Fix ipahost to work with Python3

parent 6d252a24
Branches
Tags
No related merge requests found
...@@ -155,6 +155,7 @@ host: ...@@ -155,6 +155,7 @@ host:
''' '''
import os import os
import six
from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.basic import AnsibleModule
...@@ -162,6 +163,9 @@ from ipalib import api, errors ...@@ -162,6 +163,9 @@ from ipalib import api, errors
from ipaplatform.paths import paths from ipaplatform.paths import paths
from ipapython.ipautil import run from ipapython.ipautil import run
if six.PY3:
unicode = str
def get_host_diff(ipa_host, module_host): def get_host_diff(ipa_host, module_host):
""" """
Compares two dictionaries containing host attributes and builds a dict Compares two dictionaries containing host attributes and builds a dict
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment