Skip to content

Commit

Permalink
Merge pull request #22 from thiago/bugfix/auth
Browse files Browse the repository at this point in the history
add port parameter when authenticate with username and password
  • Loading branch information
gianlucaborello committed Aug 4, 2016
2 parents 4a64742 + d1230a5 commit d4ad418
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 d4ad418

Please sign in to comment.