Skip to content

Commit 671927d

Browse files
authored
Fix typo in the simulated y_cable driver (#226)
PR #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 <[email protected]>
1 parent 51a9aca commit 671927d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sonic_y_cable/microsoft/y_cable_simulated.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _post(self, url=None, data=None):
176176
# Retry in case of exception, to workaround 'no route to host' issue after pmon restart
177177
if time.time() - start_time > self.POLL_TIMEOUT:
178178
self.log_error('Retry POST {} with data{} for physical port {} timeout after {} seconds, attempted={}'.format(
179-
get_url,
179+
post_url,
180180
post_data,
181181
self.port,
182182
self.POLL_TIMEOUT,
@@ -186,7 +186,7 @@ def _post(self, url=None, data=None):
186186
else:
187187
self.log_notice('Sleep {} seconds to retry POST {} with data {} for physical port {}'.format(
188188
self.POLL_INTERVAL,
189-
get_url,
189+
post_url,
190190
post_data,
191191
self.port
192192
))

0 commit comments

Comments
 (0)