summaryrefslogtreecommitdiffstats
path: root/infest
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-05-20 21:34:24 +0200
committertv <tv@shackspace.de>2015-05-20 21:34:24 +0200
commita2970fcae78b9973c20bdcb78a8a4ec0170aac93 (patch)
treeb01c4227dcd0b3246bce107f67b8afc20e94b9d1 /infest
parent952ea06725c8bf518955f2e5c42385573c1e6912 (diff)
lib/cac.sh cac_listservers: return maybe data
Diffstat (limited to 'infest')
-rwxr-xr-xinfest2
1 files changed, 1 insertions, 1 deletions
diff --git a/infest b/infest
index f2ccd12f5..c6d509a50 100755
--- a/infest
+++ b/infest
@@ -22,7 +22,7 @@ main() {
listservers=$(cac_listservers)
config=$(echo $listservers \
- | jq -r ".data|map(select(.servername == \"$cac_servername\"))[]")
+ | jq -r ".[]|select(.servername==\"$cac_servername\")")
serverstatus=$(echo $config | jq -r .status)
case $serverstatus in