Skip to content
Snippets Groups Projects
Commit 0d6fecc1 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

ttl: remove unneeded condition

parent 6ac27aba
No related branches found
No related tags found
No related merge requests found
...@@ -42,4 +42,4 @@ mysearch=$1 ...@@ -42,4 +42,4 @@ mysearch=$1
>&2 echo "; >>>>>>>>>> INFOBLOX DNS HELPER TTL v$_version" >&2 echo "; >>>>>>>>>> INFOBLOX DNS HELPER TTL v$_version"
>&2 echo ";" >&2 echo ";"
"$( dirname $0 )"/dns-api.sh GET "/record:host?name~=${mysearch}&_return_fields%2B=ttl,use_ttl" \ "$( dirname $0 )"/dns-api.sh GET "/record:host?name~=${mysearch}&_return_fields%2B=ttl,use_ttl" \
| jq -r '.[] | select ( .use_ttl == true and .ttl != null and .ttl > 0 and .ttl < 86400 ) | .name,.ttl' | jq -r '.[] | select ( .use_ttl == true and .ttl != null ) | .name,.ttl'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment