"juju config $app $item" prints multi-line strings as YAML
Bug #1780711 reported by
Paul Collins
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Anastasia | ||
2.3 |
Fix Released
|
High
|
Anastasia | ||
2.4 |
Fix Released
|
High
|
Anastasia |
Bug Description
When "juju config" prints a multi-line string, it encodes it as YAML. As well as being unexpected, this means that a simple and obvious command such as:
diff -u0 <(juju config g-s-s-amd64 mirror_list) scalingstack-
must instead be written as the somewhat less obvious and hacky
diff -u0 <(juju config g-s-s-amd64 mirror_list | python -c 'import sys, yaml ; print(yaml.
Observed with Juju 2.3.7 and Juju 2.4.0.
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: ui |
Changed in juju: | |
milestone: | none → 2.4.1 |
Changed in juju: | |
milestone: | 2.4.1 → 2.4.2 |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Yes, indeed :) In fact, it only does it if you filter for a specific config value. /github. com/juju/ juju/blob/ 2.4/cmd/ juju/applicatio n/config. go#L362
Responsible line https:/
I'll work o a fix and will propose shortly.