formats/aci: handle config['ENV'] is None
This commit is contained in:
parent
15e76d11f1
commit
b2d89f406b
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class ACIImage(TarImageFormatter):
|
|||
"eventHandlers": [],
|
||||
"workingDirectory": config.get('WorkingDir', '') or '/',
|
||||
"environment": [{"name": key, "value": value}
|
||||
for (key, value) in [e.split('=') for e in config.get('Env', [])]],
|
||||
for (key, value) in [e.split('=') for e in config.get('Env', []) or []]],
|
||||
"isolators": ACIImage._build_isolators(config),
|
||||
"mountPoints": ACIImage._build_volumes(config),
|
||||
"ports": ACIImage._build_ports(config),
|
||||
|
|
Reference in a new issue