docker daemon returns sometimes empty list and sometimes None

We deal with it
This commit is contained in:
Nicolas Delaby 2016-02-19 17:26:21 +01:00
parent 98a14f8090
commit 3672b8e7b1

View file

@ -183,6 +183,8 @@ def _compare(actual, create_kwargs, defaults_from_image):
continue
elif item == 'environment':
if actual_data is None:
actual_data = []
actual_env = {}
for env_var in actual_data:
try: