lib/puppet-debugger/support/facts.rb in puppet-debugger-0.19.0 vs lib/puppet-debugger/support/facts.rb in puppet-debugger-1.0.0
- old
+ new
@@ -44,14 +44,14 @@
# creates a new facts object
# we could also use fact_merge to get real facts from the real system or puppetdb
def node_facts
node_facts = FacterDB.get_facts(dynamic_facterdb_filter).first
if node_facts.nil?
- message = <<-EOS
-Using filter: #{dynamic_facterdb_filter}
-Bad FacterDB filter, please change the filter so it returns a result set.
-See https://github.com/camptocamp/facterdb/#with-a-string-filter
- EOS
+ message = <<~OUT
+ Using filter: #{dynamic_facterdb_filter}
+ Bad FacterDB filter, please change the filter so it returns a result set.
+ See https://github.com/camptocamp/facterdb/#with-a-string-filter
+ OUT
raise PuppetDebugger::Exception::BadFilter, message: message
end
# fix for when --show-legacy facts are not part of the facter 3 fact set
node_facts[:fqdn] = node_facts[:networking].fetch('fqdn', nil) unless node_facts[:fqdn]
node_facts