Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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 @@ -1775,7 +1775,7 @@

helps['webapp deployment container show-cd-url'] = """
type: command
short-summary: Get the URL which can be used to configure webhooks for continuous deployment.
short-summary: Get the URL which can be used to configure webhooks for continuous deployment. Requires SCM Basic Auth Publishing Credentials to be enabled.
examples:
- name: Get the URL which can be used to configure webhooks for continuous deployment (autogenerated)
text: az webapp deployment container show-cd-url --name MyWebApp --resource-group MyResourceGroup --slot staging
Expand Down
11 changes: 11 additions & 0 deletions src/azure-cli/azure/cli/command_modules/appservice/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,17 @@ def update_app_settings(cmd, resource_group_name, name, settings=None, slot=None
# pylint: disable=too-many-nested-blocks
for src, dest, setting_type in [(settings, result, "Settings"), (slot_settings, slot_result, "SlotSettings")]:
for s in src:
# Check if this looks like a simple key=value pair without JSON/dict syntax
# If so, parse it directly to avoid unnecessary warnings from ast.literal_eval
if ('=' in s and not s.lstrip().startswith(('{"', "[", "{")) and
not s.startswith('@')): # @ indicates file input
Comment thread
seligj95 marked this conversation as resolved.
try:
setting_name, value = s.split('=', 1)
dest[setting_name] = value
continue
except ValueError:
pass # Fall back to JSON parsing if split fails

try:
temp = shell_safe_json_parse(s)
if isinstance(temp, list): # a bit messy, but we'd like accept the output of the "list" command
Expand Down
Loading