This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-openwhisk-package-alarms.git


The following commit(s) were added to refs/heads/master by this push:
     new 11ff4d0  Fix DB URL parsing problem (#115)
11ff4d0 is described below

commit 11ff4d09852e287f3a3aad26290e32c6ff75ee7a
Author: 김건희 <kimkh6...@gmail.com>
AuthorDate: Fri Jan 12 23:31:24 2018 +0900

    Fix DB URL parsing problem (#115)
---
 provider/app.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/provider/app.js b/provider/app.js
index 9ba5f98..e46ac71 100755
--- a/provider/app.js
+++ b/provider/app.js
@@ -46,7 +46,12 @@ function createDatabase() {
     var method = 'createDatabase';
     logger.info(method, 'creating the trigger database');
 
-    var nano = require('nano')(dbProtocol + '://' + dbUsername + ':' + 
dbPassword + '@' + dbHost);
+    var nano = require('nano')({
+        url: dbProtocol + "://" + dbHost,
+        requestDefaults: {
+            auth: {user: dbUsername, pass: dbPassword}
+        }
+    });
 
     if (nano !== null) {
         return new Promise(function (resolve, reject) {

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].

Reply via email to