Closed giograno closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.50%. Comparing base (
6c68326
) to head (9e621f5
). Report is 9 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
https://github.com/getmoto/moto/pull/7973 introduced support for parameters in job commands. However, the
_add_parameters_to_command
function had a bug that resulted in duplicated arguments, when the number of arguments was greater than one.This was due to the nested list comprehension logic adopted.
For instance, the given the following job parameters
{'dossier_md5': 'abc', 'event_id': 'E12340060311'}
and the following command['--dossier_md5', 'Ref::dossier_md5', '--event_id', 'Ref::event_id']
we were given the following output:This PR adjusts the logic accordingly and adds a simple unit test to verify the fix.