Skip to content

Commit d784ab1

Browse files
committed
Rename ssh_split_options to profile::utils::split_options
1 parent 5859dac commit d784ab1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/puppet/functions/ssh_split_options.rb renamed to site/profile/lib/puppet/functions/profile/utils/split_options.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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
99
end

site/profile/manifests/users.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
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
}

0 commit comments

Comments
 (0)