dubeejw commented on a change in pull request #2893: WIP Support retrieving 
status and configuration of feed triggers in CLI
URL: 
https://github.com/apache/incubator-openwhisk/pull/2893#discussion_r147286108
 
 

 ##########
 File path: tools/cli/go-whisk-cli/commands/trigger.go
 ##########
 @@ -326,18 +328,35 @@ var triggerGetCmd = &cobra.Command{
             return werr
         }
 
-        if (flags.trigger.summary) {
-            printSummary(retTrigger)
+        // Get full feed name from trigger get request as it is needed to get 
the feed
+        if retTrigger != nil && retTrigger.Annotations != nil {
+            fullFeedName = getValueString(retTrigger.Annotations, "feed")
+        }
+
+        if len(fullFeedName) > 0 {
+            fullTriggerName := fmt.Sprintf("/%s/%s", 
qualifiedName.GetNamespace(), qualifiedName.GetEntityName())
+            flags.common.param = append(flags.common.param, 
getFormattedJSON(FEED_LIFECYCLE_EVENT, FEED_READ))
 
 Review comment:
   Need a test for this.

----------------------------------------------------------------
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

Reply via email to