From 809f6742594e6b780a5953f8fa28a20c2411416f Mon Sep 17 00:00:00 2001 From: zghp <33546213+zghp@users.noreply.github.com> Date: Tue, 28 Jan 2025 10:54:38 +0000 Subject: [PATCH] change self.output in pingTestOnly() with teh actual command output result[0] --- framework/core/deviceManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/deviceManager.py b/framework/core/deviceManager.py index 6a78269..132112d 100644 --- a/framework/core/deviceManager.py +++ b/framework/core/deviceManager.py @@ -273,7 +273,7 @@ def _pingTestOnly(self): result = utilities(self.log).syscmd( "ping" + ping_param_amount + "10" + ping_param_quiet + ip) if ( 0 == result[1] ): # Check for 0% packet loss, otherwise reject it - outputString = str(self.output) + outputString = str(result[0]) if ( ", 0% packet loss" in outputString ): hostIsUp = True self.log.debug("pingTest hostIsUp")