4
sys.path.append('hooks')
5
from subprocess import check_output, CalledProcessError
6
from charmhelpers.core.hookenv import log, action_set, action_fail
8
if __name__ == '__main__':
10
out = check_output(['ceph', '--id', 'admin',
11
'df']).decode('UTF-8')
12
action_set({'message': out})
13
except CalledProcessError as e:
15
action_fail("ceph df failed with message: {}".format(e.message))