Fix index error when getting ghost state of containers

This commit is contained in:
Mark Steve Samson 2014-05-08 12:39:15 +08:00
parent 6dc1a404d5
commit 38c008e527
1 changed files with 1 additions and 1 deletions

View File

@ -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'