From 92fbb01421431a918c75ce747c1cdf9b245495ef Mon Sep 17 00:00:00 2001 From: wade ~ Pack3tL0ss Date: Fri, 7 Feb 2020 23:34:29 -0600 Subject: [PATCH] fix error msg displayed when remote found w no adapters --- src/PyConsolePi/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PyConsolePi/common.py b/src/PyConsolePi/common.py index 153d29dc..c24dc1d6 100755 --- a/src/PyConsolePi/common.py +++ b/src/PyConsolePi/common.py @@ -666,7 +666,7 @@ def api_reachable(self, remote_data: dict): remote_data['adapters'] = _adapters update = True elif _adapters == 200: - self.error_msgs.append('Remote @ {} is reachable, but has no adapters attached'.format(remote_data['rem_ip'])) + self.error_msgs.append('Remote @ {} is reachable, but has no adapters attached'.format(_ip)) self.error_msgs.append('it\'s still available in remote shell menu') # remote was reachable update rem_ip, even if returned bad status_code still reachable