Skip to content

Commit 3f37337

Browse files
committed
Rados.mon_command() in ceph pacific expects the inbuf argument
to be passed as bytes and not str
1 parent 9ab52ce commit 3f37337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/dashboard/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class CephClusterCommand(dict):
4444

4545
def __init__(self, cluster, **kwargs):
4646
dict.__init__(self)
47-
ret, buf, err = cluster.mon_command(json.dumps(kwargs), '', timeout=5)
47+
ret, buf, err = cluster.mon_command(json.dumps(kwargs), b'', timeout=5)
4848
if ret != 0:
4949
self['err'] = err
5050
else:

0 commit comments

Comments
 (0)