Skip to content

Commit

Permalink
Fix byo aoai resource positional arg (Azure#31822)
Browse files Browse the repository at this point in the history
* Fix positional arg
  • Loading branch information
luigiw authored Aug 26, 2023
1 parent cbdcfbb commit 5484aa3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def begin_create(
) -> LROPoller[Workspace]:
existing_workspace = None
resource_group = kwargs.get("resource_group") or workspace.resource_group or self._resource_group_name
byo_open_ai_resource_id = kwargs.get("byo_open_ai_resource_id") or ""
byo_open_ai_resource_id = kwargs.pop("byo_open_ai_resource_id", "")

try:
existing_workspace = self.get(workspace.name, resource_group=resource_group)
Expand Down Expand Up @@ -118,9 +118,7 @@ def begin_create(
template,
param,
resources_being_deployed,
) = self._populate_arm_paramaters( # pylint: disable=too-many-function-args
workspace, byo_open_ai_resource_id, **kwargs
)
) = self._populate_arm_paramaters(workspace, byo_open_ai_resource_id=byo_open_ai_resource_id, **kwargs)
# check if create with workspace hub request is valid
if workspace._kind == PROJECT_WORKSPACE_KIND:
if not all(
Expand Down

0 comments on commit 5484aa3

Please sign in to comment.