Skip to content

Commit b75d861

Browse files
schlitzeredjordanbreen28
authored andcommitted
do not pass dsc_timeout as timeout parameter to DSC resource params
(cherry picked from commit a1c61c0)
1 parent c45001a commit b75d861

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,9 @@ def invoke_params(resource)
917917
params[:ModuleName] = resource[:dscmeta_module_name]
918918
end
919919
resource[:parameters].each do |property_name, property_hash|
920+
# ignore dsc_timeout, since it is only used to specify the powershell command timeout
921+
# and timeout itself is not a parameter to the DSC resource
922+
next if property_name == :dsc_timeout
920923
# strip dsc_ from the beginning of the property name declaration
921924
name = property_name.to_s.gsub(/^dsc_/, '').to_sym
922925
params[:Property][name] = case property_hash[:mof_type]

0 commit comments

Comments
 (0)