refactor: Update Vertex class to store artifacts in a dictionary

This commit is contained in:
ogabrielluiz 2024-06-17 19:35:18 -03:00
commit fa68a8fee6

View file

@ -661,6 +661,7 @@ class Vertex:
self._custom_component, self._built_object, self.artifacts = result
self.artifacts_raw = self.artifacts.get("raw", None)
self.artifacts_type = self.artifacts.get("type", None) or ArtifactType.UNKNOWN.value
self.artifacts = {self.outputs[0]["name"]: self.artifacts}
self.logs = build_logs(self)
else:
self._built_object = result