[#359] Override represantation method for Host
All checks were successful
DCO action / DCO (pull_request) Successful in 25s
All checks were successful
DCO action / DCO (pull_request) Successful in 25s
Signed-off-by: Ilyas Niyazov <i.niyazov@yadro.com>
This commit is contained in:
parent
e9bc36b3d3
commit
9b6e6f653e
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ class Host(ABC):
|
|||
self._service_config_by_name = {service_config.name: service_config for service_config in config.services}
|
||||
self._cli_config_by_name = {cli_config.name: cli_config for cli_config in config.clis}
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return self.config.address
|
||||
|
||||
@property
|
||||
def config(self) -> HostConfig:
|
||||
"""Returns config of the host.
|
||||
|
|
Loading…
Add table
Reference in a new issue