Merge dictionary assignment with declaration

This commit is contained in:
Brian Pepple 2020-09-27 11:37:16 -04:00 committed by Odd Stråbø
parent 52525d4725
commit bfc18e7d4b

View file

@ -340,13 +340,13 @@ class ConnectionManager(object):
self.config.data['auth.server=id'] = server['Id'] self.config.data['auth.server=id'] = server['Id']
self.config.data['auth.ssl'] = options.get('ssl', self.config.data['auth.ssl']) self.config.data['auth.ssl'] = options.get('ssl', self.config.data['auth.ssl'])
result = {
'Servers': [server]
}
result['State'] = CONNECTION_STATE['SignedIn'] if server.get('AccessToken') else CONNECTION_STATE['ServerSignIn']
# Connected # Connected
return result return {
'Servers': [server],
'State': CONNECTION_STATE['SignedIn']
if server.get('AccessToken')
else CONNECTION_STATE['ServerSignIn'],
}
def _update_server_info(self, server, system_info): def _update_server_info(self, server, system_info):