Browse Source

Fix accessing options in templates

changes/13/749213/1
Liam Young 2 years ago
parent
commit
0d650e2896
  1. 3
      adapters.py

3
adapters.py

@ -140,7 +140,8 @@ class OpenStackRelationAdapters(Object):
{k.replace('-', '_'): v
for k, v in getattr(cls, 'relation_adapters', {}).items()})
self.add_relations(relations)
setattr(self, 'options', ConfigurationAdapter(charm_instance))
self.options = ConfigurationAdapter(charm_instance)
self._relations.add('options')
def __iter__(self):
"""

Loading…
Cancel
Save