Ver código fonte

Fix ps on Docker 0.8.1 when there is no command

Fixes #138
Ben Firshman 11 anos atrás
pai
commit
f430b82b43
1 arquivos alterados com 4 adições e 1 exclusões
  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):