瀏覽代碼

Fix ps on Docker 0.8.1 when there is no command

Fixes #138
Ben Firshman 11 年之前
父節點
當前提交
f430b82b43
共有 1 個文件被更改,包括 4 次插入1 次删除
  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):