Title: Message Title
Terri Haber created an issue
Puppet / PUP-7443
puppet-lookup should not fail on no returned items
Issue Type:
Bug
Affects Versions:
PUP 4.7.1
Assignee:
Unassigned
Created:
2017/04/11 2:52 PM
Priority:
Normal
Reporter:
Terri Haber
The idea behind Hiera is that data can be applied, as needed, for a node. In many cases, in the old world of hiera* functions, sometimes data is not returned, and that's ok. It should be optional, given the flexibility the user base is accustomed to in the ecosystem.
Now, however, the hiera* functions are being deprecated for the lookup function, and optional data return is not allowed. The catalog compilation fails if no data is returned. This restricts the ways in which hiera can be leveraged.
Given this example:
$jobs = lookup('cronjob', {merge => hash})
create_resources('cronjob',$jobs)