Skip to content

Commit

Permalink
rename retry parameter to re_try
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Horak <[email protected]>
  • Loading branch information
dahorak committed Jul 18, 2024
1 parent 1d009d3 commit 688a72d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def con(self):
log.info("Creating connection to NFS Client")
try:
self.__nfs_client_connection = self.get_nfs_client_connection(
retry=False
re_try=False
)
except (TimeoutError, socket.gaierror):
nfs_client_vm_cloud = config.ENV_DATA.get("nfs_client_vm_cloud")
Expand All @@ -222,12 +222,12 @@ def con(self):
log.info("Returning connection to NFS Client")
return self.__nfs_client_connection

def get_nfs_client_connection(self, retry=True):
def get_nfs_client_connection(self, re_try=True):
"""
Create connection to NFS Client VM.
"""
log.info("Connecting to nfs client test VM")
tries = 3 if retry else 1
tries = 3 if re_try else 1

@retry((TimeoutError, socket.gaierror), tries=tries, delay=60, backoff=1)
def __make_connection():
Expand Down

0 comments on commit 688a72d

Please sign in to comment.