Skip to content

Commit 5484aa3

Browse files
authored
Fix byo aoai resource positional arg (Azure#31822)
* Fix positional arg
1 parent cbdcfbb commit 5484aa3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def begin_create(
8080
) -> LROPoller[Workspace]:
8181
existing_workspace = None
8282
resource_group = kwargs.get("resource_group") or workspace.resource_group or self._resource_group_name
83-
byo_open_ai_resource_id = kwargs.get("byo_open_ai_resource_id") or ""
83+
byo_open_ai_resource_id = kwargs.pop("byo_open_ai_resource_id", "")
8484

8585
try:
8686
existing_workspace = self.get(workspace.name, resource_group=resource_group)
@@ -118,9 +118,7 @@ def begin_create(
118118
template,
119119
param,
120120
resources_being_deployed,
121-
) = self._populate_arm_paramaters( # pylint: disable=too-many-function-args
122-
workspace, byo_open_ai_resource_id, **kwargs
123-
)
121+
) = self._populate_arm_paramaters(workspace, byo_open_ai_resource_id=byo_open_ai_resource_id, **kwargs)
124122
# check if create with workspace hub request is valid
125123
if workspace._kind == PROJECT_WORKSPACE_KIND:
126124
if not all(

0 commit comments

Comments
 (0)