Yedidyah Bar David has uploaded a new change for review. Change subject: packaging: setup: only backup db if hasData ......................................................................
packaging: setup: only backup db if hasData Bug-Url: https://bugzilla.redhat.com/1054226 Change-Id: I3d3fa7884e51606355fd78e6b0542a3c46824807 Signed-off-by: Yedidyah Bar David <[email protected]> --- M packaging/ovirt-engine-dwh-setup.py 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-dwh refs/changes/79/23779/1 diff --git a/packaging/ovirt-engine-dwh-setup.py b/packaging/ovirt-engine-dwh-setup.py index ead50ea..7c8e158 100755 --- a/packaging/ovirt-engine-dwh-setup.py +++ b/packaging/ovirt-engine-dwh-setup.py @@ -560,7 +560,7 @@ ) ) - if dbExists: + if hasData: try: if options['BACKUP_DB'] is None: doBackup = utils.performBackup( @@ -606,6 +606,7 @@ utils.startEtl() sys.exit(0) + if dbExists: if utils.localHost(db_dict['host']) and not owned: if not userExists(db_dict['username']): utils.createUser( -- To view, visit http://gerrit.ovirt.org/23779 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3d3fa7884e51606355fd78e6b0542a3c46824807 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-dwh Gerrit-Branch: ovirt-3.3 Gerrit-Owner: Yedidyah Bar David <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
