summaryrefslogtreecommitdiff
path: root/lib/chef/knife
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:32:45 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:32:45 -0700
commit0bdd618fc5146dad3fa5a90d10a4b5e608e4663d (patch)
tree54e82256ba2c4d10f6a67164222ae46010e324f4 /lib/chef/knife
parentcdad2f684debda15e8cf773185e78f93892eda35 (diff)
downloadchef-0bdd618fc5146dad3fa5a90d10a4b5e608e4663d.tar.gz
fix Style/UnneededInterpolation
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r--lib/chef/knife/cookbook_site_share.rb2
-rw-r--r--lib/chef/knife/core/status_presenter.rb2
-rw-r--r--lib/chef/knife/data_bag_from_file.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/knife/cookbook_site_share.rb b/lib/chef/knife/cookbook_site_share.rb
index 144085c2a2..b97887ae69 100644
--- a/lib/chef/knife/cookbook_site_share.rb
+++ b/lib/chef/knife/cookbook_site_share.rb
@@ -140,7 +140,7 @@ class Chef
ui.error "The same version of this cookbook already exists on Supermarket."
exit(1)
else
- ui.error "#{res['error_messages'][0]}"
+ ui.error (res['error_messages'][0]).to_s
exit(1)
end
else
diff --git a/lib/chef/knife/core/status_presenter.rb b/lib/chef/knife/core/status_presenter.rb
index 4bb27d1277..711c6b8087 100644
--- a/lib/chef/knife/core/status_presenter.rb
+++ b/lib/chef/knife/core/status_presenter.rb
@@ -101,7 +101,7 @@ class Chef
fqdn = (node[:ec2] && node[:ec2][:public_hostname]) || node[:fqdn]
name = node["name"] || node.name
- run_list = "#{node['run_list']}" if config[:run_list]
+ run_list = (node['run_list']).to_s if config[:run_list]
line_parts = Array.new
if node["ohai_time"]
diff --git a/lib/chef/knife/data_bag_from_file.rb b/lib/chef/knife/data_bag_from_file.rb
index 3e8d3b6f59..91adcb3129 100644
--- a/lib/chef/knife/data_bag_from_file.rb
+++ b/lib/chef/knife/data_bag_from_file.rb
@@ -84,7 +84,7 @@ class Chef
items ||= find_all_data_bag_items(data_bag)
item_paths = normalize_item_paths(items)
item_paths.each do |item_path|
- item = loader.load_from("#{data_bags_path}", data_bag, item_path)
+ item = loader.load_from((data_bags_path).to_s, data_bag, item_path)
item = if encryption_secret_provided?
Chef::EncryptedDataBagItem.encrypt_data_bag_item(item, read_secret)
else