Skip to content

Commit 99e0a28

Browse files
author
Dave Try
committed
fixing healthcheck
1 parent beb786f commit 99e0a28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/parser/functions/docker_run_flags.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ module Puppet::Parser::Functions
4646
flags << '--detach=true'
4747
end
4848

49-
if opts['health_check_cmd']
50-
flags << "--health-cmd '#{opts['health_check_command']} || exit 1'"
49+
if opts['health_check_cmd'].to_s != 'undef'
50+
flags << "--health-cmd #{opts['health_check_cmd']}"
5151
end
5252

5353
if opts['tty']

0 commit comments

Comments
 (0)