From b9d9ef511fe882f192fe5e748bd48b60f2936334 Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Thu, 8 May 2014 23:17:48 +0200 Subject: [PATCH] Remove check for Ghost state This doesn't exist anymore and causes ansible to throw a KeyError --- library/cloud/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/docker b/library/cloud/docker index 93718cb337..72d9221833 100644 --- a/library/cloud/docker +++ b/library/cloud/docker @@ -524,7 +524,7 @@ class DockerManager: def get_running_containers(self): running = [] for i in self.get_deployed_containers(): - if i['State']['Running'] == True and i['State']['Ghost'] == False: + if i['State']['Running'] == True and i['State'].get('Ghost', False): running.append(i) return running