[Freeipa-devel] [PATCH] Proper fix for ticket 5306
Petr Spacek
pspacek at redhat.com
Wed Sep 30 09:46:27 UTC 2015
On 29.9.2015 09:12, Oleg Fayans wrote:
> +def prepare_reverse_zone(host, ip):
> + zone = get_reverse_zone_default(ip)
> + host.run_command(["ipa",
> + "dnszone-add",
> + zone,
> + "--name-from-ip=%s" % ip], raiseonerr=False)
There is probably no point in specifying --name-from-ip because you did that
already by calling get_reverse_zone_default(ip).
Anyway, I'm not sure that this
> + prepare_reverse_zone(master, replica.ip)
will not break if the reverse zone already exists (think about case where two
or more replicas are in the same subnet).
I did not test the code, I simply do not have time for it right now.
--
Petr^2 Spacek
More information about the Freeipa-devel
mailing list