[jamespage,r=hopem]

Set 'stateless=True' on storage-backend relation so
notify relation that this backend may be handled as
a stateless backend.

Closes-Bug: 1493931
This commit is contained in:
Edward Hope-Morley 2015-09-13 16:26:13 +01:00
commit d6c44127e5
2 changed files with 4 additions and 2 deletions

@ -117,7 +117,8 @@ def storage_backend(rel_id=None):
relation_set(
relation_id=rel_id,
backend_name=service_name(),
subordinate_configuration=json.dumps(CephSubordinateContext()())
subordinate_configuration=json.dumps(CephSubordinateContext()()),
stateless=True,
)

@ -136,5 +136,6 @@ class TestCinderHooks(CharmTestCase):
self.relation_set.assert_called_with(
relation_id=None,
backend_name='test',
subordinate_configuration=json.dumps({'test': 1})
subordinate_configuration=json.dumps({'test': 1}),
stateless=True,
)