Skip to content
Snippets Groups Projects
Commit a2b53497 authored by Gunnar Schaefer's avatar Gunnar Schaefer
Browse files

BF: run without any job rules

parent 06d1fa09
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,8 @@ def get_base_rules():
"""
Fetch the install-global gear rules from the database
"""
rule_doc = config.db.static.find_one({'_id': 'rules'})
return rule_doc['rule_list']
rule_doc = config.db.static.find_one({'_id': 'rules'}) or {}
return rule_doc.get('rule_list', [])
def _log_file_key_error(file_, container, error):
log.warning('file ' + file_.get('name', '?') + ' in container ' + str(container.get('_id', '?')) + ' ' + error)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment