From bc6543efae9bb1bf7c5e792e30b1ea396607f57e Mon Sep 17 00:00:00 2001 From: David Kupka Date: Fri, 8 Jan 2016 11:26:53 +0000 Subject: [PATCH] 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 --- ipaserver/install/bindinstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index be55f6c09..3d4900e78 100644 --- a/ipaserver/install/bindinstance.py +++ b/ipaserver/install/bindinstance.py @@ -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)