You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ri...@apache.org on 2017/01/26 23:54:54 UTC

incubator-madlib git commit: Madpack: Add password into connection args

Repository: incubator-madlib
Updated Branches:
  refs/heads/master 29acc5386 -> f7cb980f7


Madpack: Add password into connection args

Closes #88


Project: http://git-wip-us.apache.org/repos/asf/incubator-madlib/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-madlib/commit/f7cb980f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-madlib/tree/f7cb980f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-madlib/diff/f7cb980f

Branch: refs/heads/master
Commit: f7cb980f75bf4625839cc7c68f4e3c65830ac726
Parents: 29acc53
Author: Jim Klucar <ji...@immuta.com>
Authored: Mon Jan 23 10:22:12 2017 -0500
Committer: Rahul Iyer <ri...@apache.org>
Committed: Thu Jan 26 15:53:39 2017 -0800

----------------------------------------------------------------------
 src/madpack/madpack.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-madlib/blob/f7cb980f/src/madpack/madpack.py
----------------------------------------------------------------------
diff --git a/src/madpack/madpack.py b/src/madpack/madpack.py
index 6348899..e15bb4a 100755
--- a/src/madpack/madpack.py
+++ b/src/madpack/madpack.py
@@ -1081,6 +1081,8 @@ def main(argv):
         con_args['host'] = c_host + ':' + c_port
         con_args['database'] = c_db
         con_args['user'] = c_user
+        if c_pass is not None:
+            con_args['password'] = c_pass
 
         # Try connecting to the database
         _info("Testing database connection...", verbose)