Skip to content

Commit

Permalink
add title sort back again
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Sep 9, 2023
1 parent 95e591b commit 2f73e1f
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 @@ -28,7 +28,7 @@
} # default
}

$pql_query = puppetdb_query("resources[parameters] { ${_environments} type = 'Icinga2::Config::Fragment' and exported = true and tag = 'icinga2::instance::${destination}' and nodes { deactivated is null and expired is null } order by certname }")
$pql_query = puppetdb_query("resources[parameters] { ${_environments} type = 'Icinga2::Config::Fragment' and exported = true and tag = 'icinga2::instance::${destination}' and nodes { deactivated is null and expired is null } order by certname, title }")

$file_list = $pql_query.map |$object| {
$object['parameters']['target']
Expand Down

0 comments on commit 2f73e1f

Please sign in to comment.