mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 16:58:28 +00:00
parent
b33ba5f8ea
commit
46e5e8ac68
@ -129,7 +129,10 @@ class Compute:
|
|||||||
self._user = user.strip()
|
self._user = user.strip()
|
||||||
if password:
|
if password:
|
||||||
self._password = password.strip()
|
self._password = password.strip()
|
||||||
self._auth = aiohttp.BasicAuth(self._user, self._password, "utf-8")
|
try:
|
||||||
|
self._auth = aiohttp.BasicAuth(self._user, self._password, "utf-8")
|
||||||
|
except ValueError as e:
|
||||||
|
log.error(str(e))
|
||||||
else:
|
else:
|
||||||
self._password = None
|
self._password = None
|
||||||
self._auth = aiohttp.BasicAuth(self._user, "")
|
self._auth = aiohttp.BasicAuth(self._user, "")
|
||||||
@ -665,4 +668,3 @@ class Compute:
|
|||||||
return (this_interface["ip_address"], other_interface["ip_address"])
|
return (this_interface["ip_address"], other_interface["ip_address"])
|
||||||
|
|
||||||
raise ValueError("No common subnet for compute {} and {}".format(self.name, other_compute.name))
|
raise ValueError("No common subnet for compute {} and {}".format(self.name, other_compute.name))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user