Skip to content

Commit

Permalink
Fix typo in the simulated y_cable driver (sonic-net#226)
Browse files Browse the repository at this point in the history
PR sonic-net#221 added retry logic to the simualted y_cable driver and introduced
typos. This change is to fix the typos.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
  • Loading branch information
wangxin authored Oct 26, 2021
1 parent 51a9aca commit 671927d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic_y_cable/microsoft/y_cable_simulated.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def _post(self, url=None, data=None):
# Retry in case of exception, to workaround 'no route to host' issue after pmon restart
if time.time() - start_time > self.POLL_TIMEOUT:
self.log_error('Retry POST {} with data{} for physical port {} timeout after {} seconds, attempted={}'.format(
get_url,
post_url,
post_data,
self.port,
self.POLL_TIMEOUT,
Expand All @@ -186,7 +186,7 @@ def _post(self, url=None, data=None):
else:
self.log_notice('Sleep {} seconds to retry POST {} with data {} for physical port {}'.format(
self.POLL_INTERVAL,
get_url,
post_url,
post_data,
self.port
))
Expand Down

0 comments on commit 671927d

Please sign in to comment.