diff --git a/manifests/query_objects.pp b/manifests/query_objects.pp index 93da8b45..b0674249 100644 --- a/manifests/query_objects.pp +++ b/manifests/query_objects.pp @@ -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, title }") + $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 }") $file_list = $pql_query.map |$object| { $object['parameters']['target']