From f430b82b4349c92b2d2fd2d412bb8bfbc937707b Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Tue, 4 Mar 2014 11:26:56 +0000 Subject: [PATCH] Fix ps on Docker 0.8.1 when there is no command Fixes #138 --- fig/container.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fig/container.py b/fig/container.py index 3b004b92e..0a118af64 100644 --- a/fig/container.py +++ b/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):