StationProfile.create: Pretty print out current ports as soon as function starts when debug is on.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2022-01-18 15:12:39 -08:00
committed by shivam
parent 27f24bf2bd
commit f0694033dd

View File

@@ -394,6 +394,7 @@ class StationProfile:
sleep_time=0.02):
if debug:
print('Start station_profile.create')
pprint('Current ports: %s' % LFRequest.LFRequest('/ports'))
if (radio is None) or (radio == ""):
raise ValueError("station_profile.create: will not create stations without radio")
# Get the last event number currently on the LANforge