summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorMartin Babinsky <mbabinsk@redhat.com>2016-06-08 18:22:57 +0200
committerMartin Basti <mbasti@redhat.com>2016-06-17 18:55:19 +0200
commitdb882ae8d6eba768e08be9317e386f8ab3c8fcf7 (patch)
tree7c393cda72a8aa4608a908166f28a133cbde0bf6 /install/tools
parentd8ae2b4055284de8c1baf76819d6611978f83cc6 (diff)
downloadfreeipa-db882ae8d6eba768e08be9317e386f8ab3c8fcf7.tar.gz
freeipa-db882ae8d6eba768e08be9317e386f8ab3c8fcf7.tar.xz
freeipa-db882ae8d6eba768e08be9317e386f8ab3c8fcf7.zip
delegate removal of master DNS record and replica keys to separate functions
https://fedorahosted.org/freeipa/ticket/5588 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'install/tools')
-rwxr-xr-xinstall/tools/ipa-replica-manage8
1 files changed, 2 insertions, 6 deletions
diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage
index 5a546e33c..186eb1069 100755
--- a/install/tools/ipa-replica-manage
+++ b/install/tools/ipa-replica-manage
@@ -896,12 +896,8 @@ def cleanup_server_dns_entries(realm, hostname, suffix, options):
try:
if bindinstance.dns_container_exists(options.host, suffix,
dm_password=options.dirman_passwd):
- bind = bindinstance.BindInstance()
- bind.remove_master_dns_records(hostname, realm, realm.lower())
- bind.remove_server_ns_records(hostname)
-
- keysyncd = dnskeysyncinstance.DNSKeySyncInstance()
- keysyncd.remove_replica_public_keys(hostname)
+ bindinstance.remove_master_dns_records(hostname, realm)
+ dnskeysyncinstance.remove_replica_public_keys(hostname)
except Exception as e:
print("Failed to cleanup %s DNS entries: %s" % (hostname, e))
print("You may need to manually remove them from the tree")