From fbc04e083b0958fd476ec9556d239678a09bccb3 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 26 May 2016 13:32:52 +0200 Subject: [PATCH] Allow empty password --- gns3server/controller/compute.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py index da9fb86b..894f03ab 100644 --- a/gns3server/controller/compute.py +++ b/gns3server/controller/compute.py @@ -78,8 +78,12 @@ class Compute: self._auth = None else: self._user = user.strip() - self._password = password.strip() - self._auth = aiohttp.BasicAuth(self._user, self._password) + if password: + self._password = password.strip() + self._auth = aiohttp.BasicAuth(self._user, self._password) + else: + self._password = None + self._auth = aiohttp.BasicAuth(self._user, "") @asyncio.coroutine def update(self, **kwargs):