Rename --unfiltered to --all

This commit is contained in:
2025-08-07 21:03:25 +02:00
parent 9ecf72e2e9
commit f5af05fb50
3 changed files with 9 additions and 9 deletions

View File

@@ -207,7 +207,7 @@ dns_zone_views() {
dns_zone() {
local zone=$1
local view=$2
local unfiltered=${3:-false}
local all=${3:-false}
local keyfile
_get_keyfile keyfile "$zone" "$view" || return $?
@@ -234,7 +234,7 @@ dns_zone() {
local query='.'
local rtypes="[]"
if ! $unfiltered; then
if ! $all; then
query='[ .[] | select(.type | IN($rtypes[])) ]'
rtypes=$(printf "%s\n" "${DNS_RECORD_TYPES[@]}" | bash_array_to_json)
fi