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

This commit is contained in:
Thomas Woerner
2018-01-31 23:19:47 +01:00
parent 6d252a24d1
commit 747ec87588

View File

@@ -155,6 +155,7 @@ host:
'''
import os
import six
from ansible.module_utils.basic import AnsibleModule
@@ -162,6 +163,9 @@ from ipalib import api, errors
from ipaplatform.paths import paths
from ipapython.ipautil import run
if six.PY3:
unicode = str
def get_host_diff(ipa_host, module_host):
"""
Compares two dictionaries containing host attributes and builds a dict