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:
Thomas Bechtold 2023-03-01 12:43:38 +01:00
parent a47e4ee896
commit f0b52ec41a
2 changed files with 1 additions and 2 deletions

View File

@ -149,7 +149,7 @@ class UpdateSubCommand(base.BaseSubCommand):
if el is not None: if el is not None:
if el.text == "true": if el.text == "true":
continue continue
xml_jobs_filtered.append(xml_job) xml_jobs_filtered.append(xml_job)
logging.info( logging.info(
"Will only deploy enabled jobs " "Will only deploy enabled jobs "

View File

@ -1,5 +1,4 @@
- job-template: - job-template:
disabled: false
name: 'bar001' name: 'bar001'
description: 'My first job' description: 'My first job'