mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 11:43:10 +00:00
ecs_taskdefinition module : Convert environment variables to string (#23297)
Before modification, it fails unless it is a string type
This commit is contained in:
committed by
John R Barker
parent
529df8640b
commit
dff35bc205
@@ -352,6 +352,10 @@ def main():
|
||||
if not module.check_mode:
|
||||
# Doesn't exist. create it.
|
||||
volumes = module.params.get('volumes', []) or []
|
||||
for container in module.params['containers']:
|
||||
if 'environment' in container:
|
||||
for environment in container['environment']:
|
||||
environment['value'] = str(environment['value'])
|
||||
results['taskdefinition'] = task_mgr.register_task(module.params['family'],
|
||||
module.params['task_role_arn'],
|
||||
module.params['network_mode'],
|
||||
|
||||
Reference in New Issue
Block a user