Skip to content

Commit ac25d45

Browse files
authored
Skip deployment validation for local deployment when endpoint is invoked (#40811)
* Skip deployment validation for local deployment when endpoint is invoked * remove debug * unskip test_local_endpoint_mir_e2e test * Revert "unskip test_local_endpoint_mir_e2e test" This reverts commit d3c7354.
1 parent 92fbbd8 commit ac25d45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/operations/_online_endpoint_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,16 +333,16 @@ def invoke(
333333
:rtype: str
334334
"""
335335
params_override = params_override or []
336-
# Until this bug is resolved https://msdata.visualstudio.com/Vienna/_workitems/edit/1446538
337-
if deployment_name:
338-
self._validate_deployment_name(endpoint_name, deployment_name)
339336

340337
with open(request_file, "rb") as f: # type: ignore[arg-type]
341338
data = json.loads(f.read())
342339
if local:
343340
return self._local_endpoint_helper.invoke(
344341
endpoint_name=endpoint_name, data=data, deployment_name=deployment_name
345342
)
343+
# Until this bug is resolved https://msdata.visualstudio.com/Vienna/_workitems/edit/1446538
344+
if deployment_name:
345+
self._validate_deployment_name(endpoint_name, deployment_name)
346346
endpoint = self._online_operation.get(
347347
resource_group_name=self._resource_group_name,
348348
workspace_name=self._workspace_name,

0 commit comments

Comments
 (0)