diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-02 10:33:43 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-02 10:33:43 -0700 |
commit | f2232a71362244747949efe9ac30a7bb410626e4 (patch) | |
tree | 4671859d0fcdc385f161c087508f6bef088a1657 /lib/chef/knife | |
parent | 0bdd618fc5146dad3fa5a90d10a4b5e608e4663d (diff) | |
download | chef-f2232a71362244747949efe9ac30a7bb410626e4.tar.gz |
fix some Style/StringLiterals introduced by the UnneededInterpolation
cop
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/cookbook_site_share.rb | 2 | ||||
-rw-r--r-- | lib/chef/knife/core/status_presenter.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/cookbook_site_share.rb b/lib/chef/knife/cookbook_site_share.rb index b97887ae69..dcfd224295 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]).to_s + 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 711c6b8087..5672124007 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']).to_s if config[:run_list] + run_list = (node["run_list"]).to_s if config[:run_list] line_parts = Array.new if node["ohai_time"] |