Skip to content

Commit

Permalink
Fixed oversight.
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon Feisal authored and calvinsID committed Mar 23, 2022
1 parent b5b18d7 commit b6d026a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containerapp/azext_containerapp/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,7 @@ def enable_dapr(cmd, name, resource_group_name, dapr_app_id=None, dapr_app_port=
try:
r = ContainerAppClient.create_or_update(
cmd=cmd, resource_group_name=resource_group_name, name=name, container_app_envelope=containerapp_def, no_wait=no_wait)
return r["properties"]['dapr']
return r["properties"]['configuration']['dapr']
except Exception as e:
handle_raw_exception(e)

Expand Down Expand Up @@ -1885,7 +1885,7 @@ def disable_dapr(cmd, name, resource_group_name, no_wait=False):
try:
r = ContainerAppClient.create_or_update(
cmd=cmd, resource_group_name=resource_group_name, name=name, container_app_envelope=containerapp_def, no_wait=no_wait)
return r["properties"]['dapr']
return r["properties"]['configuration']['dapr']
except Exception as e:
handle_raw_exception(e)

Expand Down

0 comments on commit b6d026a

Please sign in to comment.