From b2d89f406bd13bfb72c3dbdb2fd9e1ab1e458ef4 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Tue, 3 Mar 2015 16:53:28 -0500 Subject: [PATCH] formats/aci: handle config['ENV'] is None --- formats/aci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/aci.py b/formats/aci.py index dd9bf4ff9..b5c40effd 100644 --- a/formats/aci.py +++ b/formats/aci.py @@ -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),