bolt-modules/boltlib/lib/puppet/functions/facts.rb in bolt-0.21.4 vs bolt-modules/boltlib/lib/puppet/functions/facts.rb in bolt-0.21.5

- old
+ new

@@ -12,15 +12,9 @@ param 'Target', :target return_type 'Hash[String, Data]' end def facts(target) - unless Puppet[:tasks] - raise Puppet::ParseErrorWithIssue.from_issue_and_stack( - Puppet::Pops::Issues::TASK_OPERATION_NOT_SUPPORTED_WHEN_COMPILING, operation: 'facts' - ) - end - inventory = Puppet.lookup(:bolt_inventory) { nil } unless inventory raise Puppet::ParseErrorWithIssue.from_issue_and_stack( Puppet::Pops::Issues::TASK_MISSING_BOLT, action: _('get facts for a target')