formats/aci: handle config['ENV'] is None

This commit is contained in:
Jimmy Zelinskie 2015-03-03 16:53:28 -05:00
parent 15e76d11f1
commit b2d89f406b

View file

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