Do not roll back failed client installation on server

In case of a failed enrollment, IPA client rolls back any changes it has made
to the system. In order to have a more debuggable setup, do not roll back these
changes in the case of an IPA server install.

https://fedorahosted.org/freeipa/ticket/3990
This commit is contained in:
Ana Krivokapic 2013-10-24 17:43:21 +02:00 committed by Petr Viktorin
parent df5f5c9fab
commit c518a80ab7

View File

@ -2606,6 +2606,11 @@ def main():
if options.force:
root_logger.warning(
"Installation failed. Force set so not rolling back changes.")
elif options.on_master:
root_logger.warning(
"Installation failed. As this is IPA server, changes will not "
"be rolled back."
)
else:
root_logger.error("Installation failed. Rolling back changes.")
options.unattended = True