Skip to content

Commit

Permalink
add port parameter when authenticate with username and password
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Rodrigues committed Aug 4, 2016
1 parent f43e736 commit d1230a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cassandradump.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def setup_cluster():
elif args.protocol_version > 1:
auth = PlainTextAuthProvider(username=args.username, password=args.password)

cluster = Cluster(contact_points=nodes, protocol_version=args.protocol_version, auth_provider=auth, load_balancing_policy=cassandra.policies.WhiteListRoundRobinPolicy(nodes))
cluster = Cluster(contact_points=nodes, port=port, protocol_version=args.protocol_version, auth_provider=auth, load_balancing_policy=cassandra.policies.WhiteListRoundRobinPolicy(nodes))
else:
cluster = Cluster(contact_points=nodes, port=port, load_balancing_policy=cassandra.policies.WhiteListRoundRobinPolicy(nodes))

Expand Down

0 comments on commit d1230a5

Please sign in to comment.