Alon Bar-Lev has uploaded a new change for review. Change subject: packaging: setup: database: fix create language ......................................................................
packaging: setup: database: fix create language condition should compare to 0 and not nothing. Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1066459 Change-Id: I19248410c43b1916c32a89dd3595a667b035a715 Signed-off-by: Alon Bar-Lev <alo...@redhat.com> --- M packaging/setup/ovirt_engine_setup/database.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/82/24782/1 diff --git a/packaging/setup/ovirt_engine_setup/database.py b/packaging/setup/ovirt_engine_setup/database.py index 9be3c58..b86de32 100644 --- a/packaging/setup/ovirt_engine_setup/database.py +++ b/packaging/setup/ovirt_engine_setup/database.py @@ -439,7 +439,7 @@ dbenvkeys=self._dbenvkeys, ) - if not statement.execute( + if statement.execute( statement=""" select count(*) from pg_language @@ -450,7 +450,7 @@ ), ownConnection=True, transaction=False, - ): + )[0]['count'] == 0: statement.execute( statement=( """ -- To view, visit http://gerrit.ovirt.org/24782 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I19248410c43b1916c32a89dd3595a667b035a715 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.4 Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches