lib/puppet-debugger/support/facts.rb in puppet-debugger-0.6.1 vs lib/puppet-debugger/support/facts.rb in puppet-debugger-0.7.0

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + module PuppetDebugger module Support module Facts # in the future we will want to grab real facts from real systems via puppetdb # or enc data @@ -44,10 +45,10 @@ # 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: #{facterdb_filter} +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 raise PuppetDebugger::Exception::BadFilter, message: message end