File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/puppet/parser/functions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ module Puppet::Parser::Functions
22
22
flags = [ ]
23
23
24
24
if opts [ 'username' ]
25
- flags << "-u ' #{ call_function ( 'docker::escape' , [ opts [ 'username' ] ] ) } ' "
25
+ flags << "-u #{ call_function ( 'docker::escape' , [ opts [ 'username' ] ] ) } "
26
26
end
27
27
28
28
if opts [ 'hostname' ]
29
- flags << "-h ' #{ call_function ( 'docker::escape' , [ opts [ 'hostname' ] ] ) } ' "
29
+ flags << "-h #{ call_function ( 'docker::escape' , [ opts [ 'hostname' ] ] ) } "
30
30
end
31
31
32
32
if opts [ 'restart' ]
@@ -37,7 +37,7 @@ module Puppet::Parser::Functions
37
37
if opts [ 'net' ] . is_a? String
38
38
flags << "--net #{ call_function ( 'docker::escape' , [ opts [ 'net' ] ] ) } "
39
39
elsif opts [ 'net' ] . is_a? Array
40
- flags << "--net #{ call_function ( 'docker::escape' , [ opts [ 'net' ] . join ( ' --net ' ) ] ) } " # FIXME: escaping is buggy
40
+ flags += opts [ 'net' ] . map { | item | [ "--net #{ call_function ( 'docker::escape' , [ item ] ) } " ] }
41
41
end
42
42
end
43
43
You can’t perform that action at this time.
0 commit comments