Fix compatibility with python 3.7

This commit is contained in:
Benjamin Renard 2022-12-15 18:41:01 +01:00
parent 7e6ae28c54
commit d78166f699

View file

@ -185,7 +185,7 @@ ceph_cmd.append('status')
ceph_cmd.append('--format=json') ceph_cmd.append('--format=json')
# exec command # exec command
with subprocess.Popen(ceph_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p: p = subprocess.Popen(ceph_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, err = p.communicate() output, err = p.communicate()
if not output: if not output: