mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fix env splitting in docker module
ENV variable value could contain '=' (for example mysql://host/db?pool=10)
This commit is contained in:
@@ -384,7 +384,7 @@ class DockerManager:
|
||||
|
||||
self.env = None
|
||||
if self.module.params.get('env'):
|
||||
self.env = dict(map(lambda x: x.split("="), self.module.params.get('env')))
|
||||
self.env = dict(map(lambda x: x.split("=", 1), self.module.params.get('env')))
|
||||
|
||||
# connect to docker server
|
||||
docker_url = urlparse(module.params.get('docker_url'))
|
||||
|
||||
Reference in New Issue
Block a user