Signed-off-by: Nick Lewis <ni...@puppetlabs.com>
---
lib/puppet/application/agent.rb | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/puppet/application/agent.rb b/lib/puppet/application/agent.rb
index f0e7f4d..2b75505 100644
--- a/lib/puppet/application/agent.rb
+++ b/lib/puppet/application/agent.rb
@@ -219,6 +219,10 @@ class Puppet::Application::Agent < Puppet::Application
Puppet.settings.use :main, :agent, :ssl
+ # Always ignoreimport for agent. It really shouldn't even try to import,
+ # but this is just a temporary band-aid.
+ Puppet[:ignoreimport] = true
+
# We need to specify a ca location for all of the SSL-related i
# indirected classes to work; in fingerprint mode we just need
# access to the local files and we don't need a ca.
--
1.7.2
My initial reaction was that there should be some form of test, but
agree that it would be very hard to meaninfully test in rspec without
firing up an agent, and found there's already a test for what I most
care about being tested with this change.
spec/unit/parser/type_loader_spec.rb
it "should return immediately when imports are being ignored" do
Puppet::Parser::Files.expects(:find_manifests).never
Puppet[:ignoreimport] = true
@loader.import("foo").should be_nil
end
> --
> You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
> To post to this group, send email to puppe...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
>
>
--
http://puppetlabs.com/ | +1-615-594-8199 | @puppetmasterd