Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
PDK update
[puppet-modules/puppetlabs-apt.git]
/
spec
/
spec_helper.rb
diff --git
a/spec/spec_helper.rb
b/spec/spec_helper.rb
index 07db73426ecff37fc2d91c2aa5f4ee0f65b4cc61..6820cebee764dcc0869db01cf799901151fa73c5 100644
(file)
--- a/
spec/spec_helper.rb
+++ b/
spec/spec_helper.rb
@@
-25,8
+25,8
@@
default_fact_files.each do |f|
next unless File.exist?(f) && File.readable?(f) && File.size?(f)
begin
next unless File.exist?(f) && File.readable?(f) && File.size?(f)
begin
- default_facts.merge!(YAML.safe_load(File.read(f),
[], [],
true))
- rescue => e
+ default_facts.merge!(YAML.safe_load(File.read(f),
permitted_classes: [], permitted_symbols: [], aliases:
true))
+ rescue
StandardError
=> e
RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}"
end
end
RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}"
end
end