Skip to content

Commit c73cbfa

Browse files
author
Robert Gartman
committed
Automate _cluster_setup
1 parent efa95bf commit c73cbfa

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
@@ -151,7 +151,7 @@ def enable_cluster(nr_of_peers):
151151
payload['bind_address'] = '0.0.0.0'
152152
payload['username'] = creds[0]
153153
payload['password'] = creds[1]
154-
payload['node_count'] = len(names)
154+
payload['node_count'] = nr_of_peers
155155
setup_resp=requests.post("http://127.0.0.1:5984/_cluster_setup", json.dumps(payload), auth=creds)
156156
print ("POST to http://127.0.0.1:5984/_cluster_setup returned",setup_resp.status_code,"payload=",json.dumps(payload))
157157

0 commit comments

Comments
 (0)