proof dies if a 'type' is not specified for a config option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charm Tools |
Fix Released
|
Undecided
|
Brad Crittenden |
Bug Description
If a config.yaml option does not have a 'type' charm-proof cannot handle it and throws an exception, exiting ungracefully.
[bac]bac@
Branched 78 revisions.
[bac]bac@
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
args.debug)
File "/usr/lib/
lint, err_code = c.proof(
File "/usr/lib/
lint.
File "/usr/lib/
expected_type = KNOWN_OPTION_
KeyError: 'type'
Related branches
- charmers: Pending requested
-
Diff: 46 lines (+16/-2)2 files modifiedcharmtools/charms.py (+2/-2)
tests/test_charm_proof.py (+14/-0)
Changed in charm-tools: | |
assignee: | nobody → Brad Crittenden (bac) |
status: | New → In Progress |
Changed in charm-tools: | |
status: | In Progress → Fix Committed |
Changed in charm-tools: | |
status: | Fix Committed → Fix Released |