Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2876,7 +2876,7 @@ def show_cors_policy(cmd, name, resource_group_name):
raise ValidationError("CORS must be enabled to enable CORS policy. Try running `az containerapp ingress cors enable -h` for more info.") from e


def show_registry(cmd, name, resource_group_name, server):
def show_registryshow_registry(cmd, name, resource_group_name, server):
Comment thread
Greedygre marked this conversation as resolved.
Outdated
_validate_subscription_registered(cmd, CONTAINER_APPS_RP)

containerapp_def = None
Expand All @@ -2894,6 +2894,8 @@ def show_registry(cmd, name, resource_group_name, server):
raise ValidationError("The containerapp {} has no assigned registries.".format(name)) from e

registries_def = containerapp_def["properties"]["configuration"]["registries"]
if registries_def is None or len(registries_def) == 0:
raise ValidationError("The containerapp job {} has no assigned registries.".format(name))
Comment thread
Greedygre marked this conversation as resolved.
Outdated

for r in registries_def:
if r['server'].lower() == server.lower():
Expand Down
Loading
Loading