Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #11 from puppetlabs/master

fixes 2.7 support
  • Loading branch information...
commit 41c07fa5f5db3ead9f48bc41a52625de0fd96f52 2 parents d13bee6 + 1cbaf48
@rodjek authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/rspec-puppet/support.rb
View
5 lib/rspec-puppet/support.rb
@@ -1,5 +1,5 @@
module RSpec::Puppet
- module Support
+ module Support
def build_catalog nodename, facts_val
node_obj = Puppet::Node.new(nodename)
@@ -9,8 +9,7 @@ def build_catalog nodename, facts_val
if Puppet::Resource::Catalog.respond_to? :find
Puppet::Resource::Catalog.find(node_obj.name, :use_node => node_obj)
else
- require 'puppet/face'
- Puppet::Face[:catalog, :current].find(node_obj.name, :use_node => node_obj)
+ Puppet::Resource::Catalog.indirection.find(node_obj.name, :use_node => node_obj)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.