Fix cli discover bug with None username/password (#615)

This commit is contained in:
sdb9696
2024-01-04 18:17:48 +00:00
committed by GitHub
parent 1bb930b096
commit b156defc3c
3 changed files with 7 additions and 3 deletions

View File

@@ -395,7 +395,7 @@ async def discover(ctx):
timeout = ctx.parent.params["timeout"]
port = ctx.parent.params["port"]
credentials = Credentials(username, password)
credentials = Credentials(username, password) if username and password else None
sem = asyncio.Semaphore()
discovered = dict()