Use json for subordinate configuration.

JSON encoding the subordinate config data is the preffered way to
pass it down the relation. This is supported by the corresponding
context https://github.com/juju/charm-helpers/blob/master/charmhelpers/contrib/openstack/context.py#L1272
and this is the approach cinder-ceph takes.
This commit is contained in:
Liam Young 2019-01-14 20:27:57 +00:00
parent 8152628b12
commit 4343977350
1 changed files with 1 additions and 1 deletions

View File

@ -50,4 +50,4 @@ class CinderBackendProvides(RelationBase):
}
conv.set_remote(backend_name=backend_name,
stateless=stateless,
subordinate_configuration=configuration)
subordinate_configuration=json.dumps(configuration))