apache / apache/openwhisk

Getting a Package Should Display Parameters for a Packaged Action

Open
#1,331 0 comments 0 reactions 0 assignees View on GitHub
bug packages
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

When getting a package that contains an action, the parameters for the packaged action are not returned.

Steps to reproduce:

```
wsk package create testPkgAction -a description "some description" -p paramKey paramValue

wsk action create testPkgAction/packagedAction hello.js -a description "another description" -p paramKey paramValue

wsk package get testPkgAction
```

Actual output:

```
wsk package get testPkgAction
ok: got package testPkgAction
{
"namespace": "_",
"name": "testPkgAction",
"version": "0.0.1",
"publish": false,
"annotations": [
{
"key": "description",
"value": "some description"
}
],
"parameters": [
{
"key": "paramKey",
"value": "paramValue"
}
],
"binding": {},
"actions": [
{
"name": "packagedAction",
"version": "0.0.1",
"publish": false,
"annotations": [
{
"key": "description",
"value": "another description"
}
]
}
]
}
```

Expected output:

```
wsk package get /jwdubee@us.ibm.com_dev/testPkgAction
ok: got package testPkgAction
{
"namespace": "_",
"name": "testPkgAction",
"version": "0.0.1",
"publish": false,
"annotations": [
{
"key": "description",
"value": "some description"
}
],
"parameters": [
{
"key": "paramKey",
"value": "paramValue"
}
],
"binding": {},
"actions": [
{
"name": "packagedAction",
"version": "0.0.1",
"publish": false,
"parameters": [
{
"key": "paramKey",
"value": "paramValue"
}
]
"annotations": [
{
"key": "description",
"value": "Another description"
}
]
}
]
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.