clearml-agent/trains_agent/commands/check_config.py
2019-10-27 00:43:19 +03:00

16 lines
426 B
Python

from trains_agent.commands.base import ServiceCommandSection
class Config(ServiceCommandSection):
def __init__(self, *args, **kwargs):
super(Config, self).__init__(*args, only_load_config=True, **kwargs)
def config(self, **_):
return self._session.print_configuration()
@property
def service(self):
""" The name of the REST service used by this command """
return 'config'