From 36bc36450afafdb2ce57b167e2c5dfd6119983f8 Mon Sep 17 00:00:00 2001 From: jhughesbiot Date: Thu, 27 Jun 2024 15:42:35 -0600 Subject: [PATCH] Fix bad multiple ip report when no ip requested --- modules/test/conn/python/src/connection_module.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/test/conn/python/src/connection_module.py b/modules/test/conn/python/src/connection_module.py index c48972911..5e8b78ec3 100644 --- a/modules/test/conn/python/src/connection_module.py +++ b/modules/test/conn/python/src/connection_module.py @@ -237,6 +237,9 @@ def _connection_single_ip(self): result = self._device_mac.upper() in mac_addresses LOGGER.info('DHCPREQUEST detected from device: ' + str(result)) + if not result: + return result, 'Device did not request a DHCP address.' + # Check the unique MAC addresses to see if they match the device for mac_address in mac_addresses: result &= self._device_mac.upper() == mac_address