Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand parameter overrides #7876

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Open
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
Prev Previous commit
Next Next commit
fix list collapse to comma delimited
  • Loading branch information
sigJoe committed Feb 5, 2025
commit be1a66317c6858a015f191ad80e54648f4a71d1c
6 changes: 3 additions & 3 deletions samcli/cli/types.py
Original file line number Diff line number Diff line change
@@ -145,11 +145,11 @@ def convert(self, values, param, ctx):
ctx,
)

elif isinstance(value, CommentedMap) or isinstance(value, dict):
elif isinstance(value, (dict, CommentedMap)):
# e.g. YAML key-value pairs
for k, v in value.items():
if isinstance(value, list):
parameters[str(k)] = ",".join(map(str, value)) # Collapse lists to csv
if isinstance(v, (list, CommentedSeq)):
parameters[str(k)] = ",".join(map(str, v)) # Collapse lists to comma delimited
else:
parameters[str(k)] = str(v)
else: