소스 검색

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):