Skip to content

Commit 87fc0e2

Browse files
author
jordanbreen28
committed
(maint) - Fix Layout/EmptyLineAfterGuardClause & Metrics/MethodLength
1 parent b75d861 commit 87fc0e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ def format_ciminstance(variable_name, class_name, property_hash)
899899
#
900900
# @param resource [Hash] a hash with the information needed to run `Invoke-DscResource`
901901
# @return [String] A string representing the PowerShell definition of the InvokeParams hash
902-
def invoke_params(resource)
902+
def invoke_params(resource) # rubocop:disable Metrics/MethodLength
903903
params = {
904904
Name: resource[:dscmeta_resource_friendly_name],
905905
Method: resource[:dsc_invoke_method],
@@ -920,6 +920,7 @@ def invoke_params(resource)
920920
# ignore dsc_timeout, since it is only used to specify the powershell command timeout
921921
# and timeout itself is not a parameter to the DSC resource
922922
next if property_name == :dsc_timeout
923+
923924
# strip dsc_ from the beginning of the property name declaration
924925
name = property_name.to_s.gsub(/^dsc_/, '').to_sym
925926
params[:Property][name] = case property_hash[:mof_type]

0 commit comments

Comments
 (0)