forked from TrueCloudLab/frostfs-testlib
[#359] Override represantation method for Host
Signed-off-by: Ilyas Niyazov <i.niyazov@yadro.com>
This commit is contained in:
parent
f1073d214c
commit
0c4e601840
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