Skip to content

Commit

Permalink
Fixed dapr enable property names. (#47)
Browse files Browse the repository at this point in the history
Co-authored-by: Haroon Feisal <haroonfeisal@microsoft.com>
  • Loading branch information
runefa and Haroon Feisal authored Mar 23, 2022
1 parent 055a677 commit 8d34371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/containerapp/azext_containerapp/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1836,13 +1836,13 @@ def enable_dapr(cmd, name, resource_group_name, dapr_app_id=None, dapr_app_port=
containerapp_def['properties']['configuration']['dapr'] = {}

if dapr_app_id:
containerapp_def['properties']['configuration']['dapr']['dapr_app_id'] = dapr_app_id
containerapp_def['properties']['configuration']['dapr']['appId'] = dapr_app_id

if dapr_app_port:
containerapp_def['properties']['configuration']['dapr']['dapr_app_port'] = dapr_app_port
containerapp_def['properties']['configuration']['dapr']['appPort'] = dapr_app_port

if dapr_app_protocol:
containerapp_def['properties']['configuration']['dapr']['dapr_app_protocol'] = dapr_app_protocol
containerapp_def['properties']['configuration']['dapr']['appProtocol'] = dapr_app_protocol

containerapp_def['properties']['configuration']['dapr']['enabled'] = True

Expand Down

0 comments on commit 8d34371

Please sign in to comment.