Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: set both PGPASSFILE and ENGINE_PGPASS
......................................................................

packaging: set both PGPASSFILE and ENGINE_PGPASS

This will enable us to drop modifying defaults for our
own scripts, which should use ENGINE_PGPASS environment.

Change-Id: Ib355a3c41b95e53786db3347e78dc6a5fe39d843
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M packaging/fedora/setup/common_utils.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/73/11573/1

diff --git a/packaging/fedora/setup/common_utils.py 
b/packaging/fedora/setup/common_utils.py
index 27f9912..0d1e17d 100755
--- a/packaging/fedora/setup/common_utils.py
+++ b/packaging/fedora/setup/common_utils.py
@@ -417,7 +417,10 @@
 def getPgPassEnv():
     # .pgpass definition
     if os.path.exists(basedefs.DB_PASS_FILE):
-        return { "PGPASSFILE" : basedefs.DB_PASS_FILE }
+        return {
+            "PGPASSFILE" : basedefs.DB_PASS_FILE,
+            "ENGINE_PGPASS" : basedefs.DB_PASS_FILE,
+        }
     else:
         raise Exception(output_messages.ERR_PGPASS)
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib355a3c41b95e53786db3347e78dc6a5fe39d843
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to