This is an automated email from the ASF dual-hosted git repository.

shihta pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit 9fa66d4bc635e8497fd3649714d1e79779fcd871
Author: ocket8888 <[email protected]>
AuthorDate: Fri Jun 21 08:06:00 2019 -0600

    fixed jq query
---
 infrastructure/cdn-in-a-box/traffic_monitor/run.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure/cdn-in-a-box/traffic_monitor/run.sh 
b/infrastructure/cdn-in-a-box/traffic_monitor/run.sh
index 7aba9c8..c86246f 100755
--- a/infrastructure/cdn-in-a-box/traffic_monitor/run.sh
+++ b/infrastructure/cdn-in-a-box/traffic_monitor/run.sh
@@ -104,7 +104,7 @@ export TO_PASSWORD=$TO_ADMIN_PASSWORD
 touch /opt/traffic_monitor/var/log/traffic_monitor.log
 
 # Do not start until there a valid Snapshot has been taken
-until [ $(to-get "/api/1.4/cdns/$CDN_NAME/snapshot" 2>/dev/null | jq -c -e 
'.config|length') -gt 0 ] ; do
+until [ $(to-get "/api/1.4/cdns/$CDN_NAME/snapshot" 2>/dev/null | jq -c -e 
'.response.config|length') -gt 0 ] ; do
        echo "Waiting on valid Snapshot...";
        sleep 3;
 done

Reply via email to