aci: handle null docker env vars

This commit is contained in:
Jimmy Zelinskie 2016-08-19 16:26:31 -04:00
parent 979d813551
commit 029159e97a

View file

@ -184,7 +184,7 @@ class ACIImage(TarImageFormatter):
hostname = hostname.split(':', 1)[0]
# Calculate the environment variables.
docker_env_vars = config.get('Env', [])
docker_env_vars = config.get('Env', []) or []
env_vars = []
for var in docker_env_vars:
pieces = var.split('=')