Renamed function for better clarity

This commit is contained in:
Abby Gourlay 2020-03-06 22:57:13 +00:00
parent e5cde15ad2
commit 298c8b6f25
2 changed files with 3 additions and 3 deletions

View file

@ -422,7 +422,7 @@ class API(object):
return response.json() return response.json()
else: else:
LOG.error("Failed to login to server with status code: "+str(response.status_code)) LOG.error("Failed to login to server with status code: "+str(response.status_code))
LOG.error(response.text) LOG.error("Server Response:\n"+str(response.content))
LOG.debug(headers) LOG.debug(headers)
return {} return {}

View file

@ -59,7 +59,7 @@ class ConnectionManager(object):
# Clone the credentials # Clone the credentials
credentials = self.credentials.get() credentials = self.credentials.get()
found_servers = self._find_servers(self._server_discovery()) found_servers = self.process_found_servers(self._server_discovery())
if not found_servers and not credentials['Servers']: # back out right away, no point in continuing if not found_servers and not credentials['Servers']: # back out right away, no point in continuing
LOG.info("Found no servers") LOG.info("Found no servers")
@ -245,7 +245,7 @@ class ConnectionManager(object):
LOG.exception("Error trying to find servers: %s", e) LOG.exception("Error trying to find servers: %s", e)
return servers return servers
def _find_servers(self, found_servers): def process_found_servers(self, found_servers):
servers = [] servers = []