Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Aws ecs taskdefinition #53926
Memory, cpu, and memoryReservation are integer types, but non-int values were not handled correctly. Put a try/except block around the cast of parameter values to int. I'm not sure the error message is good, I dislike the single quotes around the parameter name. Any better way to do this?
Also, the type for the memory param in argument_spec was str, so corrected to int.
Fixes #53915 which was a (still needed) documentation fix.
I didn't raise a bug, just felt shamed into fixing this after the above was commented on @willthames
This was the failure output before the change (memory: 1G):
This is the output with the change (memory: 1G):
And this is the playbook/task working with the correct value (memory: 1024):