mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
[1,2,3] -> range(1,4)
This commit is contained in:
parent
cec7f6a7ec
commit
d4336d011c
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ def _connect(contact_points=None, port=None, cql_user=None, cql_pass=None,
|
|||
auth_provider=auth_provider,
|
||||
protocol_version=protocol_version,
|
||||
compression=True)
|
||||
for recontimes in [1, 2, 3]:
|
||||
for recontimes in range(1, 4):
|
||||
try:
|
||||
session = cluster.connect()
|
||||
break
|
||||
|
|
Loading…
Add table
Reference in a new issue