Check self.parameters.env exists.
This commit is contained in:
parent
bc665fca9c
commit
2016911e64
1 changed files with 2 additions and 1 deletions
|
@ -1278,6 +1278,7 @@ class Container(DockerBaseClass):
|
||||||
for env_var in image['ContainerConfig']['Env']:
|
for env_var in image['ContainerConfig']['Env']:
|
||||||
parts = env_var.split('=')
|
parts = env_var.split('=')
|
||||||
expected_env[parts[0]] = parts[1]
|
expected_env[parts[0]] = parts[1]
|
||||||
|
if self.parameters.env:
|
||||||
expected_env.update(self.parameters.env)
|
expected_env.update(self.parameters.env)
|
||||||
param_env = []
|
param_env = []
|
||||||
for key, value in expected_env.items():
|
for key, value in expected_env.items():
|
||||||
|
|
Loading…
Reference in a new issue