From 90d954d022dbea806607c82f20a8173258a8bc67 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 4 Jul 2016 11:02:36 -0400 Subject: Use user-defined hosts configuration if it exists --- steuermann/run_cron.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/steuermann/run_cron.py b/steuermann/run_cron.py index 0b137a8..b007d0f 100644 --- a/steuermann/run_cron.py +++ b/steuermann/run_cron.py @@ -60,6 +60,9 @@ def main() : hosts_ini = os.path.join(os.path.dirname(__file__), 'hosts.ini') + if os.path.exists(steuermann.config.hosts_config): + hosts_ini = steuermann.config.hosts_config + runner = steuermann.run.runner( nodes = { node.name : node }, hosts_ini = hosts_ini ) logname = logfile_name = steuermann.config.logdir + '/cron/' + logfile -- cgit