clearml-agent/trains_agent/commands/check_config.py

21 lines
535 B
Python
Raw Normal View History

2019-10-26 21:43:19 +00:00
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()
2019-10-28 19:53:34 +00:00
def init(self, **_):
# alias config init
from .config import main
return main()
2019-10-26 21:43:19 +00:00
@property
def service(self):
""" The name of the REST service used by this command """
return 'config'