mirror of
https://github.com/docker/compose.git
synced 2025-07-21 20:54:32 +02:00
Merge pull request #140 from orchardup/fix-ps-on-docker-0.8.1-with-no-command
Fix ps on Docker 0.8.1 when there is no command
This commit is contained in:
commit
d4bff56a61
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user