diff options
author | Simo Sorce <simo@redhat.com> | 2015-07-15 13:14:35 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-10-01 16:20:48 -0400 |
commit | a1badbb907fe01a75e7af309c0953b686d2c4587 (patch) | |
tree | 51a6c0f787006a1b213a294c8d24a2485ed6a6b2 /ipaserver/install/dns.py | |
parent | 70bd0ec94c87069b0f4d8777332ac62bbd541ab6 (diff) | |
download | freeipa-a1badbb907fe01a75e7af309c0953b686d2c4587.tar.gz freeipa-a1badbb907fe01a75e7af309c0953b686d2c4587.tar.xz freeipa-a1badbb907fe01a75e7af309c0953b686d2c4587.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>
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 486472094..6d546655b 100644 --- a/ipaserver/install/dns.py +++ b/ipaserver/install/dns.py @@ -266,7 +266,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 @@ -284,7 +284,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, |