Skip to content

Commit 9906ee9

Browse files
committed
Upload artifact only if it is specified.
1 parent 75cd758 commit 9906ee9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ads/jobs/builders/infrastructure/dsc_job.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ def _create_with_oci_api(self) -> None:
312312
logger.debug(oci_model)
313313
res = self.client.create_job(oci_model)
314314
self.update_from_oci_model(res.data)
315+
if not self.artifact:
316+
return
315317
try:
316318
if issubclass(self.artifact.__class__, Artifact):
317319
with self.artifact as artifact:

0 commit comments

Comments
 (0)