Rename --unfiltered to --all
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user