Juju GUI handling of empty config breaks promulgated charms

Stuart Bishop stuart.bishop at canonical.com
Wed Feb 22 15:41:58 UTC 2017


On 21 February 2017 at 16:30, Merlijn Sebrechts
<merlijn.sebrechts at gmail.com> wrote:
> Thanks, Stuart!
>
> Now I get a different error. It seems that the charm really can't handle
> null as a string value.

Rather than comb through the charm updating all the call sites, I've
made a hack to ensure config values never get returned as null. I also
didn't want to change the style, as the alternative (using
config.get()) can hide other bugs.

Other charms will have the same problem, so this should certainly be
fixed in Juju.

-- 
Stuart Bishop <stuart.bishop at canonical.com>



More information about the Juju mailing list