From 7bf160f1d121373eebd2fb277f14d110647366c3 Mon Sep 17 00:00:00 2001 From: Dipti Date: Tue, 20 Oct 2020 22:04:41 -0700 Subject: [PATCH] if statement changes --- py-json/realm.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/py-json/realm.py b/py-json/realm.py index c116da99..49860306 100755 --- a/py-json/realm.py +++ b/py-json/realm.py @@ -1825,8 +1825,7 @@ class VAPProfile(LFCliBase): if self.self.wifi_extra_data_modified: wifi_extra_r.addPostData(self.wifi_extra_data) json_response = wifi_extra_r.jsonPost(debug) - else: - print("set_wifi_extra must be called to use wifi_extra") + port_list = self.local_realm.json_get("port/1/1/list") if port_list is not None: @@ -2778,8 +2777,7 @@ class StationProfile: if self.wifi_extra_data_modified: wifi_extra_r.addPostData(self.wifi_extra_data) json_response = wifi_extra_r.jsonPost(debug) - else: - print("set_wifi_extra must be called to use wifi_extra") + LFUtils.waitUntilPortsAppear(self.lfclient_url, self.station_names)