Skip to content

Commit fb90b32

Browse files
committed
Fix condition
1 parent 7751407 commit fb90b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mem3_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def check_membership_forever():
9393
elif 'cluster_nodes' in membership_json and 'all_nodes' in membership_json:
9494
if membership_json['cluster_nodes'] != membership_json['all_nodes']:
9595
print('ERROR: cluster_nodes contains:', membership_json['cluster_nodes'], 'while all_nodes contains:', membership_json['all_nodes'], '!', file=sys.stderr)
96-
if expected_peers_count and membership_json['cluster_nodes'] and len(membership_json['cluster_nodes']) < int(expected_peers_count):
96+
if expected_peers_count and len(membership_json['cluster_nodes']) < int(expected_peers_count):
9797
print('ERROR: cluster_nodes contains', len(membership_json['cluster_nodes']), 'nodes, but expecting', expected_peers_count, 'nodes!', file=sys.stderr)
9898
else:
9999
print('ERROR: _membership response does not contain expected data structure!', file=sys.stderr)

0 commit comments

Comments
 (0)