Alex Lourie has uploaded a new change for review. Change subject: packaging: setup: update error handling in remote DB flow ......................................................................
packaging: setup: update error handling in remote DB flow Change-Id: I60af89aee018eb44a63d38de42f2643c0d850d3e Bug-Url: https://bugzilla.redhat.com/ Signed-off-by: Alex Lourie <[email protected]> --- M packaging/ovirt-engine-reports-setup.py 1 file changed, 2 insertions(+), 5 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-reports refs/changes/35/22235/1 diff --git a/packaging/ovirt-engine-reports-setup.py b/packaging/ovirt-engine-reports-setup.py index c608dd6..f4814ad 100755 --- a/packaging/ovirt-engine-reports-setup.py +++ b/packaging/ovirt-engine-reports-setup.py @@ -1037,7 +1037,7 @@ ) if not DB_EXIST: print ( - 'error: cannot connect to the ' + 'Error: cannot connect to the ' 'remote db with provided credentials. ' 'verify that the provided user is defined ' 'user exists on a remote db server and ' @@ -1045,10 +1045,7 @@ 'Then rerun the setup.\n' ) if options['REMOTE_DB_HOST'] is not None: - sys.exit(1) - - else: - raise RuntimeError('Could not connect to the remote DB') + raise RuntimeError('Could not connect to the remote DB') if not isWarInstalled() and DB_EXIST and dblocal: @utils.transactionDisplay('Checking system state') -- To view, visit http://gerrit.ovirt.org/22235 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I60af89aee018eb44a63d38de42f2643c0d850d3e Gerrit-PatchSet: 1 Gerrit-Project: ovirt-reports Gerrit-Branch: master Gerrit-Owner: Alex Lourie <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
