charms.openstack/charms_openstack/charm
Liam Young 48bac1b871 Add interfaces from flags to adapter interface
When render_configs is called without an adapters_instance it used to
construct an adapters_instance which lacked any relation data. This
was, in effect, useless (the pre-existing docstring comment says as
much). Usually render_configs is called via render_with_interfaces
which inturn has gets its interface list excplicitly passed in.
However, this approach is not possible when needing to trigger a
config render from a generic layer as the generic layer does not know
which interfaces to pass.

This change adds code to dynamically build the interface list from
the flags which have been set already.

Change-Id: I1958226576c73d0ce0e9fd4c1423f86addadb454
2018-11-21 10:30:38 +00:00
..
__init__.py Refactor of charm.py -> charm/*.py and tests 2017-05-19 18:21:09 +01:00
classes.py Non-API charm series upgrade 2018-10-17 14:53:57 -07:00
core.py Add interfaces from flags to adapter interface 2018-11-21 10:30:38 +00:00
defaults.py Import statement removed on core.py 2018-08-24 13:27:09 +02:00
utils.py Change some helpers to do less work 2017-08-08 14:46:20 +01:00