[2.7.1] action-get with --format=json returns 'null' when no parameters are defined for an action
Bug #1862026 reported by
Dmitrii Shcherbakov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Harry Pidcock |
Bug Description
cat actions.yaml
test: {}
It appears to be that action-get returns 'null' when `--format=json` is used and there are no parameters defined for an action in actions.yaml. An empty dict is returned without `--format=json` which seems inconsistent.
# with an RPDB trace set up in a charm code:
juju run-action <unit> test --wait
(Pdb) subprocess.
b'null\n'
(Pdb) type(json.
<class 'NoneType'>
(Pdb) subprocess.
'{}\n'
Related discussion:
https:/
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.7.2 |
Changed in juju: | |
milestone: | 2.7.2 → 2.7.3 |
Changed in juju: | |
milestone: | 2.7.3 → 2.7.4 |
Changed in juju: | |
milestone: | 2.7.4 → 2.7.5 |
Changed in juju: | |
milestone: | 2.7.5 → 2.7.6 |
Changed in juju: | |
milestone: | 2.7.6 → 2.8-rc1 |
Changed in juju: | |
status: | Triaged → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
https:/ /github. com/juju/ juju/pull/ 11499