From b8dd597a69a9cb5f3ce5c53dec77902228f30766 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Tue, 26 Mar 2019 12:46:10 +0100
Subject: [PATCH] ansible_ipa_replica: Cleaned up double and unused imports

Double imports and also the import of create_replica_config from
ipaserver.install.installutils have been removed. create_replica_config
is not used because the use of domain level 0 is not supported.
---
 roles/ipareplica/module_utils/ansible_ipa_replica.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/roles/ipareplica/module_utils/ansible_ipa_replica.py b/roles/ipareplica/module_utils/ansible_ipa_replica.py
index 65e46298..b5fdd445 100644
--- a/roles/ipareplica/module_utils/ansible_ipa_replica.py
+++ b/roles/ipareplica/module_utils/ansible_ipa_replica.py
@@ -25,7 +25,7 @@
 import os
 import sys
 import logging
-#import fcntl
+import inspect
 from contextlib import contextmanager as contextlib_contextmanager
 
 
@@ -42,10 +42,7 @@ else:
 if NUM_VERSION >= 40600:
     # IPA version >= 4.6
 
-    import inspect
-
     import contextlib
-    import logging
 
     import dns.exception as dnsexception
     import dns.name as dnsname
@@ -81,7 +78,7 @@ if NUM_VERSION >= 40600:
         installutils, kra, krbinstance,
         otpdinstance, custodiainstance, service, upgradeinstance)
     from ipaserver.install.installutils import (
-        create_replica_config, ReplicaConfig, load_pkcs12, is_ipa_configured)
+        ReplicaConfig, load_pkcs12, is_ipa_configured)
     from ipaserver.install.replication import (
         ReplicationManager, replica_conn_check)
     from ipaserver.install.server.replicainstall import (
-- 
GitLab