Fix: Use unattended parameter instead of options.unattended

Attribute 'unattended' is not always present in 'options' so function
parameter 'unattended' should be used.

https://fedorahosted.org/freeipa/ticket/5563

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
David Kupka authored and Martin Basti committed 2016-01-11 16:34:31 +01:00
1 parent da1b119663
commit bc6543efae
1 file changed
+1 -1
+1 -1
View File
@@ -463,7 +463,7 @@ def check_reverse_zones(ip_addresses, reverse_zones, options, unattended,
ipautil.check_zone_overlap(rz)
except ValueError as e:
msg = "Reverse zone %s will not be used: %s" % (rz, e)
if options.unattended:
if unattended:
sys.exit(msg)
else:
root_logger.warning(msg)