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

added shell=True to subprocess.check_return call #1855

Merged
merged 2 commits into from
Jul 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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