Skip to content

Commit e9f906c

Browse files
twistedduckflorindragos
authored andcommitted
Fix publish flag being erroneously added to docker service commands (#471)
1 parent 043395e commit e9f906c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/parser/functions/docker_service_flags.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module Puppet::Parser::Functions
4646
opts['publish'].each do |port|
4747
flags << "--publish #{port}"
4848
end
49-
elsif opts['publish'].to_s != 'undef'
49+
elsif opts['publish'] && opts['publish'].to_s != 'undef'
5050
flags << "--publish '#{opts['publish']}'"
5151
end
5252

0 commit comments

Comments
 (0)