proof fails if there's not type key in config.yaml

Bug #1270186 reported by Charles Butler
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juju Charm Tools
Fix Released
High
Tim Van Steenburgh

Bug Description

Traceback (most recent call last):
  File "/usr/bin/charm-proof", line 9, in <module>
    load_entry_point('charm-tools==1.2.8', 'console_scripts', 'charm-proof')()
  File "/usr/lib/python2.7/dist-packages/charmtools/proof.py", line 63, in main
    args.debug)
  File "/usr/lib/python2.7/dist-packages/charmtools/proof.py", line 56, in proof
    lint, err_code = c.proof(with_remote)
  File "/usr/lib/python2.7/dist-packages/charmtools/charms.py", line 412, in proof
    lint.check_config_file(charm_path)
  File "/usr/lib/python2.7/dist-packages/charmtools/charms.py", line 185, in check_config_file
    expected_type = KNOWN_OPTION_TYPES[option_value['type']]
KeyError: 'type'

Related branches

Marco Ceppi (marcoceppi)
Changed in charm-tools:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Marco Ceppi (marcoceppi)
milestone: none → 1.2.9
Marco Ceppi (marcoceppi)
summary: - charm-tools 1.2.8 fail on charm proof
+ proof fails if there's not type key in config.yaml
Marco Ceppi (marcoceppi)
Changed in charm-tools:
milestone: 1.2.9 → 1.2.10
Marco Ceppi (marcoceppi)
Changed in charm-tools:
milestone: 1.2.10 → 1.2.11
Changed in charm-tools:
assignee: Marco Ceppi (marcoceppi) → Tim Van Steenburgh (tvansteenburgh)
status: Triaged → In Progress
Changed in charm-tools:
status: In Progress → Fix Committed
Revision history for this message
Robin Winslow (nottrobin) wrote :

When might the fix be released?

Marco Ceppi (marcoceppi)
Changed in charm-tools:
milestone: 1.2.11 → 1.3.0
Marco Ceppi (marcoceppi)
Changed in charm-tools:
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.