Skip to content

Commit 849b281

Browse files
committed
(PUP-10946) Ignore max_files during pluginsync
There's nothing a user can do to solve this issue, so ignore errors/warnings due to numbers of files.
1 parent d86dc2a commit 849b281

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/puppet/configurer/downloader.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def default_arguments
7373
:purge => true,
7474
:force => true,
7575
:backup => false,
76-
:noop => false
76+
:noop => false,
77+
:max_files => -1
7778
}
7879
if !Puppet::Util::Platform.windows?
7980
defargs[:owner] = Process.uid

spec/unit/configurer/downloader_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ def generate_file_resource(options = {})
8181
expect(file[:source_permissions]).to eq(:ignore)
8282
end
8383

84+
it "should ignore the max file limit" do
85+
file = generate_file_resource
86+
87+
expect(file[:max_files]).to eq(-1)
88+
end
89+
8490
describe "on POSIX", :if => Puppet.features.posix? do
8591
it "should allow source_permissions to be overridden" do
8692
file = generate_file_resource(:source_permissions => :use)

0 commit comments

Comments
 (0)