Default to no when trying trying to install a replica on wrong server.

When installing a replica file on the wrong server we warn that this will
likely fail and prompt to Continue. This prompt should default to
False, not True.

https://fedorahosted.org/freeipa/ticket/2325
This commit is contained in:
Rob Crittenden
2012-07-19 00:41:01 -04:00
parent e578183ea2
commit 78810f9068

View File

@@ -336,7 +336,7 @@ def main():
if config.host_name != host:
try:
print "This replica was created for '%s' but this machine is named '%s'" % (config.host_name, host)
if not ipautil.user_input("This may cause problems. Continue?", True):
if not ipautil.user_input("This may cause problems. Continue?", False):
sys.exit(0)
config.host_name = host
print ""