empty config.yaml causes panic

Bug #1199432 reported by William Reade
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Matthew Williams

Bug Description

charm.ReadConfig unmarshals the content to (*Config)(nil), without error, and then tries to use .Options without checking. We ought to report an invalid config file instead of panicing.

Tags: bitesize easy

Related branches

Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.14.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.