From 4343977350858308595de4c7c9bd00f227e5859e Mon Sep 17 00:00:00 2001 From: Liam Young Date: Mon, 14 Jan 2019 20:27:57 +0000 Subject: [PATCH] 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. --- provides.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provides.py b/provides.py index 2d81551..450c471 100644 --- a/provides.py +++ b/provides.py @@ -50,4 +50,4 @@ class CinderBackendProvides(RelationBase): } conv.set_remote(backend_name=backend_name, stateless=stateless, - subordinate_configuration=configuration) + subordinate_configuration=json.dumps(configuration))