Explorar o código

Merge pull request #215 from marksteve/docker-0.11

Docker 0.11
Ben Firshman %!s(int64=11) %!d(string=hai) anos
pai
achega
c3c8395cef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'