mdeuser commented on a change in pull request #2458: wsk CLI should tolerate
APIs that do not yet have a mapped action
URL:
https://github.com/apache/incubator-openwhisk/pull/2458#discussion_r126015616
##########
File path: tools/cli/go-whisk-cli/commands/api.go
##########
@@ -1218,7 +1231,9 @@ func printFilteredListApiV2(resultApi *whisk.RetApiV2,
apiPath string, apiVerb s
if ( len(apiVerb) == 0 || strings.ToLower(op) ==
strings.ToLower(apiVerb)) {
whisk.Debug(whisk.DbgInfo, "printFilteredListApiV2:
operation matches: %#v\n", opv)
var actionName string
- if (len(opv.XOpenWhisk.Package) > 0) {
+ if (opv.XOpenWhisk == nil) {
Review comment:
There's a test to ensure the `wsk api list` command handles action-less apis
correctly. I'll append to that test another check the `wsk api list --full`
output as well
----------------------------------------------------------------
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