From dccf70ec0b16645fc305df9646925aa25ba7ba33 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 --- cloud/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/docker b/cloud/docker index 93718cb3374..72d92218333 100644 --- a/cloud/docker +++ b/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