mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 03:44:41 +00:00
library/ipahost.py: Fix ipahost to work with Python3
This commit is contained in:
@@ -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
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user