Yedidyah Bar David has uploaded a new change for review.

Change subject: packaging: setup: Fix check of pg conf
......................................................................

packaging: setup: Fix check of pg conf

Fixes Iefb23a075148380c187a304f15d79160ec674f5f.
Strip quotes before comparing.

Change-Id: I4ee8cbff88c0d0bf3e4fe97e54ef318a223f572d
Bug-Url: https://bugzilla.redhat.com/1176457
Bug-Url: https://bugzilla.redhat.com/1077267
Signed-off-by: Yedidyah Bar David <d...@redhat.com>
(cherry picked from commit 8e9847287d2c314f8c512c73242dcdff305db116)
---
M packaging/setup/ovirt_engine_setup/engine_common/database.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/15/37815/1

diff --git a/packaging/setup/ovirt_engine_setup/engine_common/database.py 
b/packaging/setup/ovirt_engine_setup/engine_common/database.py
index d028827..c002a9f 100644
--- a/packaging/setup/ovirt_engine_setup/engine_common/database.py
+++ b/packaging/setup/ovirt_engine_setup/engine_common/database.py
@@ -596,7 +596,9 @@
 
     @staticmethod
     def _lower_equal(key, current, expected):
-        return current.lower() == expected.lower()
+        return (
+            current.strip(' \t"\'').lower() == expected.strip(' \t"\'').lower()
+        )
 
     @staticmethod
     def _error_message(key, current, expected, format_str, name):


-- 
To view, visit http://gerrit.ovirt.org/37815
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4ee8cbff88c0d0bf3e4fe97e54ef318a223f572d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Yedidyah Bar David <d...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to