Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport][ipa-4-6] Return a value if exceptions are raised in server uninstall #1706

Closed
wants to merge 2 commits into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Mar 19, 2018

This PR was opened automatically because PR #1640 was pushed to master and backport to ipa-4-6 is required.

The AdminTool class purports to "call sys.exit() with the return
value" but most of the run implementations returned no value, or
the methods they called returned nothing so there was nothing to
return, so this was a no-op.

The fix is to capture and bubble up the return values which will
return 1 if any exceptions are caught.

This potentially affects other users in that when executing the
steps of an installer or uninstaller the highest return code
will be the exit value of that installer.

Don't use the Continuous class because it doesn't add any
value and makes catching the exceptions more difficult.

https://pagure.io/freeipa/issue/7330

Signed-off-by: Rob Crittenden rcritten@redhat.com
@tiran
Copy link
Member Author

tiran commented Mar 19, 2018

PR was ACKed automatically because this is backport of PR #1640. Wait for CI to finish before pushing. In case of questions or problems contact @rcritten who is author of the original PR.

@tiran tiran added ack Pull Request approved, can be merged pushed Pull Request has already been pushed labels Mar 19, 2018
@tiran
Copy link
Member Author

tiran commented Mar 20, 2018

ipa-4-6:

  • b446e45 Return a value if exceptions are raised in server uninstall
  • 68f1744 Remove the Continuous installer class, it is unused

@tiran tiran closed this Mar 20, 2018
@tiran tiran deleted the backport_pr1640_ipa-4-6 branch March 29, 2019 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
2 participants