mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Use Pydantic to validate the server config file.
This commit is contained in:
1 parent
478119b40d
commit
30ebae207f
61 files changed
+871
-695
No files matched your search
@@ -121,9 +121,9 @@ class Compute:
|
||||
else:
|
||||
self._user = user.strip()
|
||||
if password:
|
||||
self._password = password.strip()
|
||||
self._password = password
|
||||
try:
|
||||
self._auth = aiohttp.BasicAuth(self._user, self._password, "utf-8")
|
||||
self._auth = aiohttp.BasicAuth(self._user, self._password.get_secret_value(), "utf-8")
|
||||
except ValueError as e:
|
||||
log.error(str(e))
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user