Fix env splitting in docker module

ENV variable value could contain '=' (for example mysql://host/db?pool=10)
pull/7527/head
Konstantin Shabanov 11 years ago committed by James Cammarata
parent 7c0431b1e4
commit e83f14200c

@ -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'))

Loading…
Cancel
Save