Skip to content

Commit 7d31f91

Browse files
committed
Fix #584: Deal with Arrays for the net list
1 parent ef89ada commit 7d31f91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/puppet/parser/functions/docker_run_flags.rb

Lines changed: 2 additions & 0 deletions
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']}"
27+
elsif opts['net'].is_a? Array
28+
flags << "--net #{opts['net'].join(' --net ')}"
2729
end
2830

2931
if opts['memory_limit']

0 commit comments

Comments
 (0)