Skip to content

Commit 73b34b4

Browse files
committed
Fix multiple additional flags for docker_network
Each additional flag has to be pushed as extra String otherwise Docker will complain about uknown flag. Signed-off-by: Pavel Matěja <[email protected]>
1 parent 7c7c38c commit 73b34b4

File tree

1 file changed

+4
-1
lines changed
  • lib/puppet/provider/docker_network

1 file changed

+4
-1
lines changed

lib/puppet/provider/docker_network/ruby.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ def network_conf
2323
['--ipam-driver=%s', :ipam_driver],
2424
['--aux-address=%s', :aux_address],
2525
['--opt=%s', :options],
26-
['%s', :additional_flags],
2726
].each do |(format, key)|
2827
values = resource[key]
2928
new_flags = multi_flags.call(values, format)
3029
flags.concat(new_flags)
3130
end
31+
additional_flags = resource[:additional_flags].split
32+
additional_flags.each do |additional_flag|
33+
flags << additional_flag
34+
end
3235
flags << resource[:name]
3336
end
3437

0 commit comments

Comments
 (0)