From 38c008e52704bef5666cfa364e20d7e0a3e59dd3 Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Thu, 8 May 2014 12:39:15 +0800 Subject: [PATCH] Fix index error when getting ghost state of containers --- fig/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fig/container.py b/fig/container.py index c926d2a96..4ac42a44b 100644 --- a/fig/container.py +++ b/fig/container.py @@ -78,7 +78,7 @@ class Container(object): def human_readable_state(self): self.inspect_if_not_inspected() if self.dictionary['State']['Running']: - if self.dictionary['State']['Ghost']: + if self.dictionary['State'].get('Ghost'): return 'Ghost' else: return 'Up'