From 1829282205ff79ad01aa20be731cca0aa166d991 Mon Sep 17 00:00:00 2001 From: Chris Holcombe Date: Fri, 21 Oct 2016 10:47:14 -0700 Subject: [PATCH] Add relation param to setup_mds --- src/reactive/ceph_fs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reactive/ceph_fs.py b/src/reactive/ceph_fs.py index b16426b..e941529 100644 --- a/src/reactive/ceph_fs.py +++ b/src/reactive/ceph_fs.py @@ -29,9 +29,9 @@ def install_cephfs(): @when('cephfs.configured') -@when('cephfs.pools.created') +@when('ceph-mds.pools.available') @when_not('cephfs.started') -def setup_mds(): +def setup_mds(relation): try: service_restart('ceph-mds') set_state('cephfs.started')