more verbose variables

This commit is contained in:
2021-03-30 04:59:13 +03:00
parent 2260e52d5c
commit fbf6748d4a
35 changed files with 196 additions and 192 deletions

View File

@ -111,15 +111,15 @@ class Client:
return self.add(package, BuildStatusEnum.Unknown)
@staticmethod
def load(architecture: str, config: Configuration) -> Client:
def load(architecture: str, configuration: Configuration) -> Client:
"""
load client from settings
:param architecture: repository architecture
:param config: configuration instance
:param configuration: configuration instance
:return: client according to current settings
"""
host = config.wrap("web", architecture, "host", config.get, fallback=None)
port = config.wrap("web", architecture, "port", config.getint, fallback=None)
host = configuration.wrap("web", architecture, "host", configuration.get, fallback=None)
port = configuration.wrap("web", architecture, "port", configuration.getint, fallback=None)
if host is None or port is None:
return Client()