Commit dddb1681 authored by Alex Iribarren's avatar Alex Iribarren
Browse files

Merge branch 'dev' into 'master'

Actually skip disabled jobs

See merge request linuxsupport/cronjobs/reposync!29
parents 7b05b4b3 0578987a
......@@ -13,7 +13,7 @@ import base64
try:
opts, args = getopt.getopt(sys.argv[1:], "c:t:y:", ["config=", "template=", "yumdir="])
except getopt.GetoptError:
print('test.py -c <configfile> -t <templatefile> -y <yumdir>')
print('generateJobs.py -c <configfile> -t <templatefile> -y <yumdir>')
sys.exit(1)
config_name = None
......@@ -67,7 +67,7 @@ for repofile in os.listdir(yumdir_name):
continue
for rid in repoconfig.sections():
if repoconfig[rid].get('enabled', 1) == 0:
if not repoconfig[rid].getboolean('enabled', True):
continue
try:
SCHEDULE = config[repofile]['schedule']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment