Skip to content

Commit

Permalink
[Container app] az containerapp compose create: Fix issue where the…
Browse files Browse the repository at this point in the history
… environment's location is not resolved from `--location` (#28920)
  • Loading branch information
Greedygre authored May 9, 2024
1 parent 6abde5e commit 2c35741
Show file tree
Hide file tree
Showing 4 changed files with 6,255 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@
def create_containerapps_compose_environment(cmd,
name,
resource_group_name,
tags=None):
tags=None,
location=None):

return create_managed_environment(cmd,
name,
resource_group_name,
tags=tags)
tags=tags,
location=location)


def build_containerapp_from_compose_service(cmd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4817,7 +4817,8 @@ def create_containerapps_from_compose(cmd, # pylint: disable=R0914
managed_environment = create_containerapps_compose_environment(cmd,
managed_env_name,
env_rg,
tags=tags)
tags=tags,
location=location)

compose_yaml = load_yaml_file(compose_file_path)
parsed_compose_file = ComposeFile(compose_yaml)
Expand Down
Loading

0 comments on commit 2c35741

Please sign in to comment.