diff options
Diffstat (limited to 'lib/chef/formatters/error_inspectors')
8 files changed, 9 insertions, 9 deletions
diff --git a/lib/chef/formatters/error_inspectors/api_error_formatting.rb b/lib/chef/formatters/error_inspectors/api_error_formatting.rb index 05ee3132a7..5f2a912a01 100644 --- a/lib/chef/formatters/error_inspectors/api_error_formatting.rb +++ b/lib/chef/formatters/error_inspectors/api_error_formatting.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require 'chef/http/authenticator' +require "chef/http/authenticator" class Chef module Formatters @@ -106,7 +106,7 @@ E # Parses JSON from the error response sent by Chef Server and returns the # error message def format_rest_error - Array(Chef::JSONCompat.from_json(exception.response.body)["error"]).join('; ') + Array(Chef::JSONCompat.from_json(exception.response.body)["error"]).join("; ") rescue Exception safe_format_rest_error end diff --git a/lib/chef/formatters/error_inspectors/compile_error_inspector.rb b/lib/chef/formatters/error_inspectors/compile_error_inspector.rb index 621fadce40..1c0cce9dd7 100644 --- a/lib/chef/formatters/error_inspectors/compile_error_inspector.rb +++ b/lib/chef/formatters/error_inspectors/compile_error_inspector.rb @@ -74,7 +74,7 @@ class Chef MESSAGE - error_description.section("Additional information:", msg.gsub(/^ {6}/, '')) + error_description.section("Additional information:", msg.gsub(/^ {6}/, "")) end end diff --git a/lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb b/lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb index e011fa9d9b..a1f2c8ce37 100644 --- a/lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb +++ b/lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require 'chef/formatters/error_inspectors/api_error_formatting' +require "chef/formatters/error_inspectors/api_error_formatting" class Chef module Formatters diff --git a/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb b/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb index 971dbd664e..30811a6d24 100644 --- a/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb +++ b/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require 'chef/formatters/error_inspectors/api_error_formatting' +require "chef/formatters/error_inspectors/api_error_formatting" class Chef module Formatters diff --git a/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb b/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb index d81a9f7cc8..6371243624 100644 --- a/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb +++ b/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require 'chef/formatters/error_inspectors/api_error_formatting' +require "chef/formatters/error_inspectors/api_error_formatting" class Chef module Formatters diff --git a/lib/chef/formatters/error_inspectors/registration_error_inspector.rb b/lib/chef/formatters/error_inspectors/registration_error_inspector.rb index dbd23f4a52..312e35adb6 100644 --- a/lib/chef/formatters/error_inspectors/registration_error_inspector.rb +++ b/lib/chef/formatters/error_inspectors/registration_error_inspector.rb @@ -134,7 +134,7 @@ E #-- # TODO: this code belongs in Chef::REST def format_rest_error - Array(Chef::JSONCompat.from_json(exception.response.body)["error"]).join('; ') + Array(Chef::JSONCompat.from_json(exception.response.body)["error"]).join("; ") rescue Exception exception.response.body end diff --git a/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb b/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb index 6e4d9322f9..83e22cb410 100644 --- a/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb +++ b/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb @@ -52,7 +52,7 @@ class Chef end if Chef::Platform.windows? - require 'chef/win32/security' + require "chef/win32/security" if !Chef::ReservedNames::Win32::Security.has_admin_privileges? error_description.section("Missing Windows Admin Privileges", "chef-client doesn't have administrator privileges. This can be a possible reason for the resource failure.") diff --git a/lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb b/lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb index 818228276e..7ba5448227 100644 --- a/lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb +++ b/lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb @@ -17,7 +17,7 @@ # limitations under the License. # -require 'chef/formatters/error_inspectors/api_error_formatting' +require "chef/formatters/error_inspectors/api_error_formatting" class Chef module Formatters |