Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Revert "docker/compose: quote health-cmd""
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Jun 17, 2019
2 parents 87ab8dc + a809d78 commit 01eb542
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion paunch/builder/compose1.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def container_run_args(self, cmd, container):
if 'healthcheck' in cconfig:
hconfig = cconfig['healthcheck']
if 'test' in hconfig:
cmd.append('--health-cmd="%s"' % hconfig['test'])
cmd.append('--health-cmd=%s' % hconfig['test'])
if 'interval' in hconfig:
cmd.append('--health-interval=%s' % hconfig['interval'])
if 'timeout' in hconfig:
Expand Down
4 changes: 2 additions & 2 deletions paunch/tests/test_builder_compose1.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_cont_run_args(self):
'uts': 'host',
'restart': 'always',
'healthcheck': {
'test': 'ls /mydir',
'test': '/bin/true',
'interval': '30s',
'timeout': '10s',
'retries': 3
Expand Down Expand Up @@ -59,7 +59,7 @@ def test_cont_run_args(self):
['docker', 'run', '--name', 'one',
'--detach=true', '--env-file=/tmp/foo.env',
'--net=host', '--ipc=host', '--pid=container:bar',
'--uts=host', '--health-cmd="ls /mydir"', '--health-interval=30s',
'--uts=host', '--health-cmd=/bin/true', '--health-interval=30s',
'--health-timeout=10s', '--health-retries=3',
'--privileged=true', '--restart=always', '--user=bar',
'--log-opt=tag={{.ImageName}}/{{.Name}}/{{.ID}}',
Expand Down

0 comments on commit 01eb542

Please sign in to comment.