On 09/30/2015 12:19 PM, Oleg Fayans wrote:
On 09/30/2015 11:46 AM, Petr Spacek wrote:
On 29.9.2015 09:12, Oleg Fayans wrote:
+def prepare_reverse_zone(host, ip):
+ zone = get_reverse_zone_default(ip)
+ "--name-from-ip=%s" % ip], raiseonerr=False)
There is probably no point in specifying --name-from-ip because you
already by calling get_reverse_zone_default(ip).
Anyway, I'm not sure that this
will not break if the reverse zone already exists (think about case
+ prepare_reverse_zone(master, replica.ip)
or more replicas are in the same subnet).
That's why I am using the raiseonerr=False here.
I did not test the code, I simply do not have time for it right now.
LGTM, I will test it soon, but it needs rebase for ipa-4-2 branch
Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code