fixing broken loop

This commit is contained in:
2025-08-12 07:42:00 +00:00
parent a8123e8120
commit e0cfc2dbd3

View File

@ -211,9 +211,8 @@ jobs:
return re.search(pattern, changed_files) is not None
# Loop through docs (assuming structure similar to ansible)
for doc0 in doc_exports_var.get('docs', []):
for doc0 in doc_exports_var:
# Here doc0 = {service_type:..., repository:..., service_title:..., ...}
# We expect doc0 to contain a 'docs' list (per your subelements('docs'))
for doc1 in doc0.get('docs', []):
html_loc = doc1.get('html_location')
rst_loc = doc1.get('rst_location')