Skip to content

Commit

Permalink
Remove walrus operator for Py3.7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Feb 22, 2024
1 parent ac089db commit 4cdee3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyinfra/connectors/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ def connect(state: "State", host: "Host"):
retries = host.data.get(DATA_KEYS.connect_retries, 0)

for tries_left in range(retries, -1, -1):
if con := _connect(state, host, tries_left):
con = _connect(state, host, tries_left)
if con:
return con


Expand Down

0 comments on commit 4cdee3d

Please sign in to comment.