Skip to content

Commit 391e9e6

Browse files
authored
Merge pull request #647 from ffective/fix/584
Fix #584: Deal with Arrays for the net list
2 parents 360cdb5 + 2f5689d commit 391e9e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/puppet/parser/functions/docker_run_flags.rb

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ module Puppet::Parser::Functions
2424

2525
if opts['net'].is_a? String
2626
flags << "--net #{opts['net'].shellescape}"
27+
elsif opts['net'].is_a? Array
28+
flags << "--net #{opts['net'].join(' --net ').shellescape}"
2729
end
2830

2931
if opts['memory_limit']

0 commit comments

Comments
 (0)