Skip to content

Commit

Permalink
Merge pull request docker#140 from orchardup/fix-ps-on-docker-0.8.1-w…
Browse files Browse the repository at this point in the history
…ith-no-command

Fix ps on Docker 0.8.1 when there is no command
  • Loading branch information
aanand committed Mar 4, 2014
2 parents 7153379 + f430b82 commit d4bff56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fig/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ def human_readable_state(self):
@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):
Expand Down

0 comments on commit d4bff56

Please sign in to comment.