From 26a8f03051361c5d32ed440fc36fd5a97451b756 Mon Sep 17 00:00:00 2001 From: ozgunawesome <11738322+ozgunawesome@users.noreply.github.com> Date: Mon, 10 Jul 2023 15:49:41 -0700 Subject: [PATCH] fix invalid zone with cloudflare DNS API --- dnsapi/dns_cf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_cf.sh b/dnsapi/dns_cf.sh index cd8d9a8d..ba3b024e 100755 --- a/dnsapi/dns_cf.sh +++ b/dnsapi/dns_cf.sh @@ -162,7 +162,7 @@ _get_root() { p=1 # Use Zone ID directly if provided - if [ "$CF_Zone_ID" ]; then + if [ -z "$CF_Zone_ID" ]; then if ! _cf_rest GET "zones/$CF_Zone_ID"; then return 1 else