From df5879fc77fc34ca2c037c7a0700b6b9acb74af6 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Mon, 24 Jan 2022 17:11:37 -0800 Subject: [PATCH] sta_connect.setup: check_exists should be used as an argument in rm_port, the existing code was probably from before we had the check_exists method Signed-off-by: Matthew Stidham --- py-scripts/sta_connect.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/py-scripts/sta_connect.py b/py-scripts/sta_connect.py index 6dcaa6af..ba90cdbb 100755 --- a/py-scripts/sta_connect.py +++ b/py-scripts/sta_connect.py @@ -174,8 +174,7 @@ class StaConnect(Realm): return False for sta_name in self.station_names: - if self.port_exists(sta_name, debug=self.debug): - self.rm_port(sta_name, debug_=self.debug) + self.rm_port(sta_name, check_exists=True, debug_=self.debug) self.wait_until_ports_disappear(self.station_names, debug_=self.debug) # Create stations and turn dhcp on