1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Only split on the first colon.

Fixes #1214
This commit is contained in:
Toshio Kuratomi 2015-04-28 08:33:26 -07:00 committed by Matt Clay
parent b5b34f6931
commit 4592b795d9

View file

@ -536,7 +536,7 @@ class DockerManager(object):
self.lxc_conf = [] self.lxc_conf = []
options = self.module.params.get('lxc_conf') options = self.module.params.get('lxc_conf')
for option in options: for option in options:
parts = option.split(':') parts = option.split(':', 1)
self.lxc_conf.append({"Key": parts[0], "Value": parts[1]}) self.lxc_conf.append({"Key": parts[0], "Value": parts[1]})
self.exposed_ports = None self.exposed_ports = None