From 2cbf43750c26bf68e10efd135f1513f8cd2e5feb Mon Sep 17 00:00:00 2001 From: Alex Iribarren <Alex.Iribarren@cern.ch> Date: Thu, 6 Dec 2018 16:31:49 +0100 Subject: [PATCH] Assume enabled by default --- generateJobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generateJobs.py b/generateJobs.py index a726f63..3076d47 100755 --- a/generateJobs.py +++ b/generateJobs.py @@ -67,7 +67,7 @@ for repofile in os.listdir(yumdir_name): continue for rid in repoconfig.sections(): - if repoconfig[rid]['enabled'] == 0: + if repoconfig[rid].get('enabled', 1) == 0: continue try: SCHEDULE = config[repofile]['schedule'] -- GitLab