Yaniv Dary has uploaded a new change for review.

Change subject: packaging: changed the db dict get method
......................................................................

packaging: changed the db dict get method

Engine now saved config values with quotes marks. This breaks
the current db dict get method. Added replace for these values.

Change-Id: I68b69296bffd98c7262751bc807da54885791b28
Signed-off-by: Yaniv Dary <[email protected]>
---
M packaging/ovirt-engine-dwh-setup.py
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-dwh refs/changes/00/20700/1

diff --git a/packaging/ovirt-engine-dwh-setup.py 
b/packaging/ovirt-engine-dwh-setup.py
index bf344ca..65c3ac3 100755
--- a/packaging/ovirt-engine-dwh-setup.py
+++ b/packaging/ovirt-engine-dwh-setup.py
@@ -219,8 +219,8 @@
                 dhandler.getParam('DWH_DATABASE') or
                 DB_NAME
             ),
-            'host': handler.getParam('ENGINE_DB_HOST'),
-            'port': handler.getParam('ENGINE_DB_PORT'),
+            'host': handler.getParam('ENGINE_DB_HOST').replace('"', ''),
+            'port': handler.getParam('ENGINE_DB_PORT').replace('"', ''),
             'username': (
                 dhandler.getParam('DWH_USER') or
                 DB_USER
@@ -233,8 +233,8 @@
                 dhandler.getParam('DWH_READONLY_USER') or
                 None
             ),
-            'engine_db': handler.getParam('ENGINE_DB_DATABASE'),
-            'engine_user': handler.getParam('ENGINE_DB_USER'),
+            'engine_db': handler.getParam('ENGINE_DB_DATABASE').replace('"', 
''),
+            'engine_user': handler.getParam('ENGINE_DB_USER').replace('"', ''),
             'engine_pass': handler.getParam('ENGINE_DB_PASSWORD').replace('"', 
''),
         }
         handler.close()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I68b69296bffd98c7262751bc807da54885791b28
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-dwh
Gerrit-Branch: master
Gerrit-Owner: Yaniv Dary <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to