From 77f8739a4741e2370e40ec39345a92a6ea393a1a Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 2 Jul 2019 11:11:35 -0700 Subject: fix Layout/AlignArguments this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist --- lib/chef/provider/service/windows.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/chef/provider/service/windows.rb') diff --git a/lib/chef/provider/service/windows.rb b/lib/chef/provider/service/windows.rb index d4f649ae28..adb214711a 100644 --- a/lib/chef/provider/service/windows.rb +++ b/lib/chef/provider/service/windows.rb @@ -103,7 +103,7 @@ class Chef::Provider::Service::Windows < Chef::Provider::Service if ex.errno == ERROR_SERVICE_LOGON_FAILED logger.error ex.message raise Chef::Exceptions::Service, - "Service #{@new_resource} did not start due to a logon failure (error #{ERROR_SERVICE_LOGON_FAILED}): possibly the specified user '#{@new_resource.run_as_user}' does not have the 'log on as a service' privilege, or the password is incorrect." + "Service #{@new_resource} did not start due to a logon failure (error #{ERROR_SERVICE_LOGON_FAILED}): possibly the specified user '#{@new_resource.run_as_user}' does not have the 'log on as a service' privilege, or the password is incorrect." else raise ex end @@ -209,8 +209,8 @@ class Chef::Provider::Service::Windows < Chef::Provider::Service end converge_if_changed :service_type, :startup_type, :error_control, - :binary_path_name, :load_order_group, :dependencies, - :run_as_user, :display_name, :description do + :binary_path_name, :load_order_group, :dependencies, + :run_as_user, :display_name, :description do Win32::Service.configure(windows_service_config(:configure)) end -- cgit v1.2.1