Fix --enabled-only option when updating jobs
Commit 5e61fbaf00c97 added a new --enabled-only option but that doesn't work correctly because the xml_jobs_filtered variable isn't filled with all the jobs in the end. So some jobs are not updated even if the disabled status was not found. That's fixed now. Change-Id: I915116cf875e9e20c10ca43175c924b9e4307cca
This commit is contained in:
parent
a47e4ee896
commit
f0b52ec41a
@ -149,7 +149,7 @@ class UpdateSubCommand(base.BaseSubCommand):
|
||||
if el is not None:
|
||||
if el.text == "true":
|
||||
continue
|
||||
xml_jobs_filtered.append(xml_job)
|
||||
xml_jobs_filtered.append(xml_job)
|
||||
|
||||
logging.info(
|
||||
"Will only deploy enabled jobs "
|
||||
|
@ -1,5 +1,4 @@
|
||||
- job-template:
|
||||
disabled: false
|
||||
name: 'bar001'
|
||||
description: 'My first job'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user