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

fix argument type handling for host_volumes when used with --with and SFN #884

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

oavdeev
Copy link
Collaborator

@oavdeev oavdeev commented Jan 6, 2022

The problem

There is a somewhat obscure difference in a way list attributes are handled between SFN and "standalone" AWS Batch. If the attribute is a list of strings, but the user passes a single string instead, it is implicitly converted to a single-item list when we convert attributes to command-line args for batch_cli.py and they are parsed back to Python objects by click. However, that conversion does not happen when used with SFN.

Short term fix

Support both single strings and lists for host_volumes

A longer term fix

A proper solution would be to more explicitly support list attributes in decospec parser used for --with, and have unit tests for that. Right now it just kinda happens to (mostly) work.

@oavdeev oavdeev merged commit e9ab02b into Netflix:master Jan 6, 2022
@oavdeev oavdeev deleted the host-volumes-type-fix branch January 6, 2022 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants