Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1855 from datacentred/adjust_ceph_call_in_iops_pl…
Browse files Browse the repository at this point in the history
…ugin

added shell=True to subprocess.check_return call
  • Loading branch information
Babbleshack committed Jul 9, 2015
2 parents 202fb3d + fbc90d5 commit 573d819
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/dc_collectd/files/ceph/ceph_iops_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ def get_stats(self):
ceph_cluster = "%s-%s" % (self.prefix, self.cluster)
data = {ceph_cluster:{'health': {'iops':0}}}
try:
output = subprocess.check_output(['ceph', '-s', '--format', 'json'])
output = subprocess.check_output('ceph -s --format json',
shell=True
)
except subprocess.CalledProcessError as exc:
collectd.error(
"ceph-iops: failed to ceph -s :: Output is %s :: error code %i"
Expand Down

0 comments on commit 573d819

Please sign in to comment.