Comment 3 for bug 1292116

Revision history for this message
Jay R. Wren (evarlast) wrote :

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.