I've learned more than I wanted to know about yaml since filing a duplicate of this bug.
It turns out the work around is very easy. Do not use | or >
Charm config.yaml option description values should either be all on one line or continue to next line.
For example, in the mysql charm:
ha-bindiface:
type: string
default: eth0 description: |
Default network interface on which HA cluster will bind to communication
with the other members of the HA Cluster.
This renders ugly with juju get:
ha-bindiface:
default: true
description: 'Default network interface on which HA cluster will bind to communication
with the other members of the HA Cluster.
'
If instead the config.yaml did not use | it would render pretty.
Example of fixed section of config.yaml:
ha-bindiface:
type: string
default: eth0 description: Default network interface on which HA cluster will bind to communication
with the other members of the HA Cluster.
Documentation should be updated with these details and charm proof should be updated with checks for good rendering.
I've learned more than I wanted to know about yaml since filing a duplicate of this bug.
It turns out the work around is very easy. Do not use | or >
Charm config.yaml option description values should either be all on one line or continue to next line.
For example, in the mysql charm:
ha-bindiface:
description: |
type: string
default: eth0
Default network interface on which HA cluster will bind to communication
with the other members of the HA Cluster.
This renders ugly with juju get:
ha-bindiface:
default: true
description: 'Default network interface on which HA cluster will bind to communication
with the other members of the HA Cluster.
'
If instead the config.yaml did not use | it would render pretty.
Example of fixed section of config.yaml:
ha-bindiface:
description: Default network interface on which HA cluster will bind to communication
type: string
default: eth0
with the other members of the HA Cluster.
Documentation should be updated with these details and charm proof should be updated with checks for good rendering.