-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add key value pairs to dict utility fn #11748
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a unit test for this? Should be a quick change.
@viren-nadkarni done. Could you re-review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @RobertLucian ✔️
Can be merged after fixing the linting issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I question why this utility is needed, but I could say the same for most of the utilities in this module!
As @viren-nadkarni says the tests haven't actually run yet because they need reformatting. Please run make format
and commit.
Motivation
Adding a utility function to unpack comma-separated values from a string (i.e. source env var) into a dictionary.
Needed for: https://github.com/localstack/localstack-ext/pull/3569