File tree 2 files changed +7
-1
lines changed
lib/puppet/provider/docker_network
spec/unit/lib/puppet/type
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,17 @@ def network_conf
23
23
[ '--ipam-driver=%s' , :ipam_driver ] ,
24
24
[ '--aux-address=%s' , :aux_address ] ,
25
25
[ '--opt=%s' , :options ] ,
26
- [ '%s' , :additional_flags ] ,
27
26
] . each do |( format , key ) |
28
27
values = resource [ key ]
29
28
new_flags = multi_flags . call ( values , format )
30
29
flags . concat ( new_flags )
31
30
end
31
+ if resource [ :additional_flags ] . is_a? ( String )
32
+ additional_flags = resource [ :additional_flags ] . split
33
+ additional_flags . each do |additional_flag |
34
+ flags << additional_flag
35
+ end
36
+ end
32
37
flags << resource [ :name ]
33
38
end
34
39
Original file line number Diff line number Diff line change 12
12
:ip_range ,
13
13
:aux_address ,
14
14
:options ,
15
+ :additional_flags ,
15
16
]
16
17
end
17
18
You can’t perform that action at this time.
0 commit comments