use a default release selector, add more codenames
If a default selector is not used, get_charm_instance provides release=None to the __init__ of a charm class which results in an exception down the road in core.py in charms.openstack.
This commit is contained in:
parent
50ea0566c8
commit
747a17117a
|
@ -31,6 +31,9 @@ PANKO_WSGI_CONF = '/etc/apache2/sites-available/{}.conf'.format(
|
|||
PANKO_APACHE_SITE)
|
||||
|
||||
|
||||
charms_openstack.charm.use_defaults('charm.default-select-release')
|
||||
|
||||
|
||||
class PankoCharmRelationAdapters(adapters.OpenStackAPIRelationAdapters):
|
||||
relation_adapters = {
|
||||
'shared_db': adapters.DatabaseRelationAdapter,
|
||||
|
@ -81,7 +84,12 @@ class PankoCharm(charms_openstack.charm.HAOpenStackCharm):
|
|||
|
||||
package_codenames = {
|
||||
'panko-common': collections.OrderedDict([
|
||||
('4', 'pike'),
|
||||
('2', 'mitaka'),
|
||||
('3', 'newton'),
|
||||
('4', 'ocata'),
|
||||
('5', 'pike'),
|
||||
('6', 'queens'),
|
||||
('7', 'rocky'),
|
||||
]),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue