diff options
author | Simo Sorce <simo@redhat.com> | 2015-07-15 13:14:35 -0400 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-10-15 14:24:33 +0200 |
commit | f7d1e4f9a21b0f3e63bd3bcd4a17acf749e0b208 (patch) | |
tree | 17e46575771630abe170134d42d74632d6c5922d /ipaserver/install/dns.py | |
parent | d03619fff3a1eb7d21c2ba21f8867ae8018779b8 (diff) | |
download | freeipa-f7d1e4f9a21b0f3e63bd3bcd4a17acf749e0b208.tar.gz freeipa-f7d1e4f9a21b0f3e63bd3bcd4a17acf749e0b208.tar.xz freeipa-f7d1e4f9a21b0f3e63bd3bcd4a17acf749e0b208.zip |
Change DNS installer code to use passed in api
Fixes a number of places where api was not passed around internally.
Also allows to install dns in replica promotion which requires an
alternative api to be created with the right configuration.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver/install/dns.py')
-rw-r--r-- | ipaserver/install/dns.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/dns.py b/ipaserver/install/dns.py index 1253b9bd0..d8b52e0ef 100644 --- a/ipaserver/install/dns.py +++ b/ipaserver/install/dns.py @@ -262,7 +262,7 @@ def install_check(standalone, replica, options, hostname): print("Using reverse zone(s) %s" % ', '.join(reverse_zones)) -def install(standalone, replica, options): +def install(standalone, replica, options, api=api): global ip_addresses global dns_forwarders global reverse_zones @@ -280,7 +280,7 @@ def install(standalone, replica, options): # otherwise this is done by server/replica installer update_hosts_file(ip_addresses, api.env.host, fstore) - bind = bindinstance.BindInstance(fstore, ldapi=True, + bind = bindinstance.BindInstance(fstore, ldapi=True, api=api, autobind=AUTOBIND_ENABLED) bind.setup(api.env.host, ip_addresses, api.env.realm, api.env.domain, dns_forwarders, conf_ntp, reverse_zones, zonemgr=options.zonemgr, |