Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Commit b9d6b1c

Browse files
committed
fix(analytics): read extended image definition in gitlab ci files
1 parent 424262e commit b9d6b1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zoo/analytics/tasks/gitlab_ci.py

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ def parse_gitlab_ci_template(parsed_yaml):
1313

1414
def get_image(image_def):
1515
"""Get names of docker images from yaml dict."""
16+
if isinstance(image_def, dict):
17+
image_def = image_def.get("name")
18+
1619
if image_def is None:
1720
return None
1821

0 commit comments

Comments
 (0)