csantanapr closed pull request #121: revert PR #115
URL: https://github.com/apache/incubator-openwhisk-package-alarms/pull/121
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/provider/app.js b/provider/app.js
index e46ac71..9ba5f98 100755
--- a/provider/app.js
+++ b/provider/app.js
@@ -46,12 +46,7 @@ function createDatabase() {
var method = 'createDatabase';
logger.info(method, 'creating the trigger database');
- var nano = require('nano')({
- url: dbProtocol + "://" + dbHost,
- requestDefaults: {
- auth: {user: dbUsername, pass: dbPassword}
- }
- });
+ var nano = require('nano')(dbProtocol + '://' + dbUsername + ':' +
dbPassword + '@' + dbHost);
if (nano !== null) {
return new Promise(function (resolve, reject) {
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services