From 671927d9589ffeab3b998459c075416bca0b0579 Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Wed, 27 Oct 2021 07:48:32 +0800 Subject: [PATCH] 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 --- sonic_y_cable/microsoft/y_cable_simulated.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic_y_cable/microsoft/y_cable_simulated.py b/sonic_y_cable/microsoft/y_cable_simulated.py index 77c6ded0d73c..79aa920e6e05 100644 --- a/sonic_y_cable/microsoft/y_cable_simulated.py +++ b/sonic_y_cable/microsoft/y_cable_simulated.py @@ -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, @@ -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 ))