Explorar el Código

Fix ps on Docker 0.8.1 when there is no command

Fixes #138
Ben Firshman hace 11 años
padre
commit
f430b82b43
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      fig/container.py

+ 4 - 1
fig/container.py

@@ -86,7 +86,10 @@ class Container(object):
     @property
     def human_readable_command(self):
         self.inspect_if_not_inspected()
-        return ' '.join(self.dictionary['Config']['Cmd'])
+        if self.dictionary['Config']['Cmd']:
+            return ' '.join(self.dictionary['Config']['Cmd'])
+        else:
+            return ''
 
     @property
     def environment(self):