Skip to content

Commit 306ebc2

Browse files
committed
Updated pr.
1 parent 2cfbeff commit 306ebc2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ads/jobs/builders/runtimes/container_runtime.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ def with_image(
103103
ContainerRuntime
104104
The runtime instance.
105105
"""
106+
if not isinstance(image, str):
107+
raise ValueError(
108+
"Custom image must be provided as a string."
109+
)
106110
if image.find(":") < 0:
107111
logger.warning(
108112
"Tag is required for custom image. Accepted format: iad.ocir.io/<tenancy>/<image>:<tag>."

0 commit comments

Comments
 (0)