bolt-modules/boltlib/lib/puppet/functions/puppetdb_fact.rb in bolt-0.20.2 vs bolt-modules/boltlib/lib/puppet/functions/puppetdb_fact.rb in bolt-0.20.3

- old
+ new

@@ -27,12 +27,8 @@ raise Puppet::ParseErrorWithIssue.from_issue_and_stack( Puppet::Pops::Issues::TASK_MISSING_BOLT, action: _('query facts from puppetdb') ) end - begin - puppetdb_client.facts_for_node(certnames) - rescue StandardError => e - raise Bolt::CLIError, "Could not retrieve targets from PuppetDB: #{e}" - end + puppetdb_client.facts_for_node(certnames) end end