You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/10/23 17:27:10 UTC

[GitHub] jasonpet closed pull request #301: Store namespace CRN in trigger DB

jasonpet closed pull request #301: Store namespace CRN in trigger DB
URL: https://github.com/apache/incubator-openwhisk-package-kafka/pull/301
 
 
   

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/action/messageHubFeed.js b/action/messageHubFeed.js
index 3217d56..b4b4197 100644
--- a/action/messageHubFeed.js
+++ b/action/messageHubFeed.js
@@ -24,6 +24,7 @@ function main(params) {
 
     if (massagedParams.isIamKey) {
         massagedParams.iamUrl = process.env.__OW_IAM_API_URL;
+        massagedParams.namespaceCRN = process.env.__OW_NAMESPACE_CRN;
     }
 
     if (params.lifecycleEvent === 'CREATE') {
diff --git a/action/messageHubFeedWeb.js b/action/messageHubFeedWeb.js
index 76baae7..66114a6 100644
--- a/action/messageHubFeedWeb.js
+++ b/action/messageHubFeedWeb.js
@@ -173,6 +173,10 @@ function validateParameters(rawParams) {
             if (rawParams.iamUrl) {
                 validatedParams.iamUrl = rawParams.iamUrl;
             }
+
+            if (rawParams.namespaceCRN) {
+                validatedParams.namespaceCRN = rawParams.namespaceCRN;
+            }
         }
 
         // kafka_brokers_sasl


 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services