Skip to content

Commit

Permalink
Merge pull request #726 from Icinga/bug/absent-exported-objects
Browse files Browse the repository at this point in the history
Extend filter of quering objects (absent)
  • Loading branch information
lbetz authored Apr 14, 2023
2 parents d6d842d + 1ed427b commit f2af383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/query_objects.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}

unique($file_list).each |$target| {
$objects = $pql_query.filter |$object| { $target == $object['parameters']['target'] }
$objects = $pql_query.filter |$object| { $target == $object['parameters']['target'] and $object['parameters']['ensure'] == 'present' }

$_content = $facts['os']['family'] ? {
'windows' => regsubst(epp('icinga2/objects.epp', { 'objects' => $objects }), '\n', "\r\n", 'EMG'),
Expand Down

0 comments on commit f2af383

Please sign in to comment.