Yaniv Dary has uploaded a new change for review. Change subject: packaging: reset datasource password at setup end (#974847) ......................................................................
packaging: reset datasource password at setup end (#974847) Bug-Url: https://bugzilla.redhat.com/974847 Change-Id: I80acbb88c9f5ad801f775a788add4276b88346dd Signed-off-by: Yaniv Dary <[email protected]> --- M packaging/ovirt-engine-reports-setup.py 1 file changed, 8 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-reports refs/changes/96/15996/1 diff --git a/packaging/ovirt-engine-reports-setup.py b/packaging/ovirt-engine-reports-setup.py index 22da336..25d74e2 100755 --- a/packaging/ovirt-engine-reports-setup.py +++ b/packaging/ovirt-engine-reports-setup.py @@ -158,6 +158,13 @@ xml_editor.editParams({'/jdbcDataSource/connectionPassword':db_dict["password"]}) xml_editor.close() +def resetReportsDatasourcePassword(): + logging.debug("editing reports datasource file %s", FILE_DB_DATA_SOURCE) + xml_editor = utils.XMLConfigFileHandler(FILE_DB_DATA_SOURCE) + xml_editor.open() + xml_editor.editParams({'/jdbcDataSource/connectionPassword':""}) + xml_editor.close() + @transactionDisplay("Updating Redirect Servlet") def updateServletDbRecord(): ''' @@ -819,6 +826,7 @@ rc = 1 finally: shutil.rmtree(DIR_TEMP_SCHEDUALE) + resetReportsDatasourcePassword() return rc if __name__ == "__main__": -- To view, visit http://gerrit.ovirt.org/15996 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I80acbb88c9f5ad801f775a788add4276b88346dd Gerrit-PatchSet: 1 Gerrit-Project: ovirt-reports Gerrit-Branch: master Gerrit-Owner: Yaniv Dary <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
