mirror of
https://github.com/docker/compose.git
synced 2025-07-26 23:24:05 +02:00
Fix index error when getting ghost state of containers
This commit is contained in:
parent
6dc1a404d5
commit
38c008e527
@ -78,7 +78,7 @@ class Container(object):
|
|||||||
def human_readable_state(self):
|
def human_readable_state(self):
|
||||||
self.inspect_if_not_inspected()
|
self.inspect_if_not_inspected()
|
||||||
if self.dictionary['State']['Running']:
|
if self.dictionary['State']['Running']:
|
||||||
if self.dictionary['State']['Ghost']:
|
if self.dictionary['State'].get('Ghost'):
|
||||||
return 'Ghost'
|
return 'Ghost'
|
||||||
else:
|
else:
|
||||||
return 'Up'
|
return 'Up'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user