Handle multi-series charms in 1.25

Bug #1563607 reported by Cheryl Jennings
24
This bug affects 6 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Martin Packman

Bug Description

Juju 2.0 introduced a new feature where charms can declare multiple series in metadata.yaml. Unfortunately, this means that these charms break on juju < 2.0 with an error like:

WARNING failed to load charm at "/home/ubuntu/temp/trusty/ubuntu": metadata: series: expected string, got []interface {}([]interface {}{"precise", "trusty", "wily", "xenial"})
ERROR charm not found in "/home/ubuntu/temp": local:trusty/ubuntu

1.25 should be updated to allow for both a string series, and a list. If a list is present in metadata.yaml, the first item on the list will be selected as the series for the charm.

Tags: charms
Revision history for this message
Martin Packman (gz) wrote :
tags: added: charms
Martin Packman (gz)
Changed in juju-core:
status: In Progress → Fix Committed
Revision history for this message
Ryan Beisner (1chb1n) wrote :

Perfect-o. :-)

Linking original bug for reference: https://bugs.launchpad.net/juju-core/+bug/1545686.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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