mirror of https://github.com/docker/docker-py.git
unpack key-value pair
This commit is contained in:
parent
69027f040c
commit
20a7e860b4
|
@ -533,8 +533,7 @@ def parse_env_file(env_file):
|
|||
|
||||
parse_line = line.strip().split('=')
|
||||
if len(parse_line) == 2:
|
||||
k = parse_line[0]
|
||||
v = parse_line[1]
|
||||
k, v = parse_line
|
||||
environment[k] = v
|
||||
else:
|
||||
raise errors.DockerException(
|
||||
|
|
Loading…
Reference in New Issue