diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-11-08 17:32:34 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-11-08 17:41:45 -0800 |
commit | 2d5aeee1c2eae4c46f7053b38560efc8d0b4a7b6 (patch) | |
tree | 113ab23df58a52925a8cd1db74f2f9b3cc6768ad /lib/chef/knife/bootstrap.rb | |
parent | d6ffd5b44a04ff32e9049ed8c04bf4dad38e5b7e (diff) | |
download | chef-no_regex_in_split.tar.gz |
Don't uses regexes in splits when we don't need tono_regex_in_split
We can do this with strings alone
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r-- | lib/chef/knife/bootstrap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index efd969210b..8b598429d3 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -330,7 +330,7 @@ class Chef long: "--bootstrap-vault-item VAULT_ITEM", description: 'A single vault and item to update as "vault:item".', proc: Proc.new { |i, accumulator| - (vault, item) = i.split(/:/) + (vault, item) = i.split(":") accumulator ||= {} accumulator[vault] ||= [] accumulator[vault].push(item) |