Fix ps on Docker 0.8.1 when there is no command

Fixes #138
This commit is contained in:
Ben Firshman 2014-03-04 11:26:56 +00:00
parent 71533791dd
commit f430b82b43
1 changed files with 4 additions and 1 deletions

View File

@ -86,7 +86,10 @@ class Container(object):
@property @property
def human_readable_command(self): def human_readable_command(self):
self.inspect_if_not_inspected() 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 @property
def environment(self): def environment(self):