replicainstall: properly close adhoc connection in promote

Diconnect the established connection oncee is it no longer needed.

https://fedorahosted.org/freeipa/ticket/6461

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Tomas Krizek authored and Martin Basti committed 2016-11-07 11:34:03 +01:00
1 parent df86efdc69
commit 49ff159a5f
1 file changed
+1
@@ -1551,6 +1551,7 @@ def promote(installer):
dns.install(False, True, options, server_api)
else:
server_api.Command.dns_update_system_records()
server_api.Backend.ldap2.disconnect()
# Everything installed properly, activate ipa service.
services.knownservices.ipa.enable()