2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Correct collective show behavior

This commit is contained in:
Jarrod Johnson 2018-07-19 16:48:30 -04:00
parent bcff3fc962
commit 96671ace4e

View File

@ -75,7 +75,7 @@ def show_collective():
tlvdata.send(s, {'collective': {'operation': 'show'}})
res = tlvdata.recv(s)
if 'error' in res['collective']:
print(res['error']['collective'])
print(res['collective']['error'])
return
print('Leader: {0}'.format(res['collective']['leader']))
if 'active' in res['collective']: