Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plans/patch_group.pp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
$certnames = $pql_data.map |$item| { $item['certname'] }
$targets = get_targets($certnames)

if empty($targets) { fail("No nodes found in group '${group}' with query '${pql_query}'") }

out::message("patch_group.pp: Patching group: ${group}")
out::message("patch_group.pp: Targets in group: ${targets}")
out::message("patch_group.pp: Patching in batches is ${patch_in_batches}")
Expand Down
2 changes: 2 additions & 0 deletions plans/patch_pql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
$certnames = $pql_data.map |$item| { $item['certname'] }
$targets = get_targets($certnames)

if empty($targets) { fail("No nodes found with query '${pql_query}'") }

out::message("patch_pql.pp: Patching PQL query: ${pql_query}")
out::message("patch_pql.pp: Targets in group: ${targets}")
out::message("patch_pql.pp: Patching in batches is ${patch_in_batches}")
Expand Down
Loading