Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
747ec875
Commit
747ec875
authored
7 years ago
by
Thomas Woerner
Browse files
Options
Downloads
Patches
Plain Diff
library/ipahost.py: Fix ipahost to work with Python3
parent
6d252a24
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
library/ipahost.py
+4
-0
4 additions, 0 deletions
library/ipahost.py
with
4 additions
and
0 deletions
library/ipahost.py
+
4
−
0
View file @
747ec875
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment