fixed comparison
This commit is contained in:
1 parent
5235df2259
commit
32144c5657
1 file changed
+1
-1
+1
-1
@@ -802,7 +802,7 @@ async def get_stp_status(service):
|
||||
for spservice in spservice_array.json():
|
||||
|
||||
# using lower() to eliminate any case mismatch problems
|
||||
if spservice['name'].lower() == service:
|
||||
if spservice['name'].lower() == service.lower():
|
||||
|
||||
found = True
|
||||
return spservice
|
||||
|
||||
Reference in new issue
Block a user