charms.openstack/charms_openstack/charm
Liam Young 38de241ce6 Allow bespoke get_charm_instance method to be used
Allow a charm to use the new register_get_charm_instance decorator
to register the method to be used when getting a charm instance.
Currently get_charm_instance expects standard OpenStack
versioning, this change allows are a charm to register an
alternative get_charm_instance method that can handle an
alternative versioning system.

Perhaps controversially the default method is not defined in
charms_openstack.charm.defaults. I have kept it in core
because it felt a more natural fit there given it relies on
core._releases but I am open to moving it if that is
preferable.

Change-Id: I42574654bc1f314b49049e80861d4039f8484dff
2020-12-03 13:46:07 +00:00
..
__init__.py Charm class and handlers for Cinder plugin 2019-01-12 09:53:02 +00:00
classes.py Configure TLS on config-changed events 2020-09-21 09:39:08 +03:00
core.py Allow bespoke get_charm_instance method to be used 2020-12-03 13:46:07 +00:00
defaults.py Checked if release_pkg is set. If not, ensure a RuntimeError raised. 2020-11-30 10:00:05 +11:00
utils.py Replace `python-apt` functionality 2019-07-23 17:48:26 +02:00