File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/puppet/functions/profile/utils Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- Puppet ::Functions . create_function ( :ssh_split_options ) do
2- dispatch :ssh_split_options do
1+ Puppet ::Functions . create_function ( :'profile::utils::split_options' ) do
2+ dispatch :split_options do
33 param 'String' , :options
44 return_type 'Array'
55 end
6- def ssh_split_options ( options )
6+ def split_options ( options )
77 return options . scan ( /(\w +=".*?"|[\w -]+)/ ) . flatten
88 end
99end
Original file line number Diff line number Diff line change 170170 $key_value = $split [$key_type_index +1]
171171
172172 if $key_type_index != 0 {
173- $key_options = ssh_split_options ($split [0, $key_type_index ].join(' ' ))
173+ $key_options = profile::utils::split_options ($split [0, $key_type_index ].join(' ' ))
174174 } else {
175175 $key_options = undef
176176 }
You can’t perform that action at this time.
0 commit comments