1
0
Эх сурвалжийг харах

Fix index error when getting ghost state of containers

Mark Steve Samson 11 жил өмнө
parent
commit
38c008e527
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      fig/container.py

+ 1 - 1
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'