diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-07-04 11:02:36 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-07-04 11:02:36 -0400 |
commit | 90d954d022dbea806607c82f20a8173258a8bc67 (patch) | |
tree | 82819c0650e240556547c759eb01946ae863b84f /steuermann | |
parent | c370c4b348e10753db467ac5d73ad31c782f8972 (diff) | |
download | steuermann-90d954d022dbea806607c82f20a8173258a8bc67.tar.gz |
Use user-defined hosts configuration if it exists
Diffstat (limited to 'steuermann')
-rw-r--r-- | steuermann/run_cron.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |