Issue #15193 has been reported by Luke Kanies.
----------------------------------------
Bug #15193: Static compiler does not work because of indirection interface
changes
https://projects.puppetlabs.com/issues/15193
Author: Luke Kanies
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 2.7.17
Keywords:
Branch:
The following patch is necessary to use the static compiler:
diff --git a/lib/puppet/indirector/catalog/static_compiler.rb
b/lib/puppet/indirector/catalog/static_compiler.rb
index 1d92121..f89f351 100644
--- a/lib/puppet/indirector/catalog/static_compiler.rb
+++ b/lib/puppet/indirector/catalog/static_compiler.rb
@@ -130,8 +130,9 @@ class Puppet::Resource::Catalog::StaticCompiler <
Puppet::Indirector::Code
Puppet.info "Content for '#{resource[:source]}' already exists"
else
Puppet.info "Storing content for source '#{resource[:source]}'"
- content = Puppet::FileServing::Content.find(resource[:source])
- Puppet::FileBucket::File.new(content.content).save
+ content =
Puppet::FileServing::Content.indirection.find(resource[:source])
+ file = Puppet::FileBucket::File.new(content.content)
+ Puppet::FileBucket::File.indirection.save(file)
end
end
end
I know this is a known issue, since I've seen it discussed, but it's still not
fixed, and I couldn't find a filed bug.
I'm assuming there are also no tests for this code, else this clear failure
would have been caught.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.