From 4cfd5c652c83f3893534969b03aa6d3489d39c27 Mon Sep 17 00:00:00 2001 From: TB-1993 <109213741+TB-1993@users.noreply.github.com> Date: Mon, 5 Jan 2026 11:39:45 +0000 Subject: [PATCH] Fix #201: Corrected typo in variable name --- framework/core/remoteControllerModules/redrat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/remoteControllerModules/redrat.py b/framework/core/remoteControllerModules/redrat.py index a38e252..dadd83d 100644 --- a/framework/core/remoteControllerModules/redrat.py +++ b/framework/core/remoteControllerModules/redrat.py @@ -61,9 +61,9 @@ def start(self, hub_ip: str, hub_port: int = 40000, netbox_id: None|str=None): """ self._socket.settimeout(0.5) self._socket.connect((hub_ip, hub_port)) - if netbox_ip is not None: + if netbox_id is not None: response = self.send_message('hubquery="list redrats"') - netbox_on_hub = list(filter(lambda x: netbox_ip in x, response.splitlines())) + netbox_on_hub = list(filter(lambda x: netbox_id in x, response.splitlines())) if len(netbox_on_hub) <= 0: raise ConnectionError('Could not connect to RedRat Hub. It may be misconfigured.')