Skip to content

Commit 7ea5ef5

Browse files
committed
Fix runtime extraction error.
1 parent bde06d2 commit 7ea5ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ads/jobs/builders/infrastructure/dsc_job_runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def _extract_envs(self, dsc_job) -> dict:
680680
"""
681681
spec = super()._extract_envs(dsc_job)
682682
envs = spec.pop(PythonRuntime.CONST_ENV_VAR, {})
683-
if self.CONST_CODE_ENTRYPOINT not in envs:
683+
if self.__class__ == PythonRuntimeHandler and self.CONST_CODE_ENTRYPOINT not in envs:
684684
raise IncompatibleRuntime()
685685
envs.pop(PythonRuntimeHandler.CONST_JOB_ENTRYPOINT)
686686
spec.update(self._extract_specs(envs, self.SPEC_MAPPINGS))

0 commit comments

Comments
 (0)