From 96900d6edf078c53dfc1ef3acc8a8eba0843b26d Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 6 Nov 2017 16:22:56 +0100 Subject: [PATCH] Better calling curl --- bin/get-pdns-info | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/get-pdns-info b/bin/get-pdns-info index fef422d..8ec2fa3 100755 --- a/bin/get-pdns-info +++ b/bin/get-pdns-info @@ -238,8 +238,7 @@ show_zones() { local url="http://${PDNS_SERVER}:${API_PORT}/api/v1/servers/localhost/zones" debug "Calling URL '${url}' ..." - curl -H "X-API-Key: ${API_KEY}" "${url}" | jq . - #curl -H "X-API-Key: ${API_KEY}" "${url}" + curl --silent --show-error -H "X-API-Key: ${API_KEY}" "${url}" | jq --sort-keys . } -- 2.39.5