Skip to content

Commit ddbfad7

Browse files
committed
fix bug in cli/peer.py
1 parent 301a805 commit ddbfad7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gluster/cli/peer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def detach_all():
6565
cmd = ["detach", host]
6666
try:
6767
result = peer_execute(cmd)
68-
out = str(host) + " " + result
68+
out = str(host) + " " + result.decode()
6969
outlist.append(out)
7070
except Exception as err:
7171
errors_list.append(err)
@@ -74,7 +74,7 @@ def detach_all():
7474
errors_list.append(err)
7575
if len(errors_list):
7676
raise GlusterCmdException((1, "", errors_list))
77-
return "/n".join(outlist)
77+
return "\n".join(outlist)
7878

7979

8080
def status():

0 commit comments

Comments
 (0)