Commit e83f1420 by Konstantin Shabanov Committed by James Cammarata

Fix env splitting in docker module

ENV variable value could contain '=' (for example mysql://host/db?pool=10)
parent 7c0431b1
...@@ -384,7 +384,7 @@ class DockerManager: ...@@ -384,7 +384,7 @@ class DockerManager:
self.env = None self.env = None
if self.module.params.get('env'): 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 # connect to docker server
docker_url = urlparse(module.params.get('docker_url')) docker_url = urlparse(module.params.get('docker_url'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment