Merge branch 'development' into leakage

This commit is contained in:
Rob Gill
2026-03-14 04:26:05 +10:00
committed by GitHub
6 changed files with 8 additions and 7 deletions

View File

@@ -371,7 +371,8 @@ GetPADDData() {
# Using "paths(scalars | true)" will return null and false values.
# We also check if the value is exactly `null` and, in this case, return the
# string "null", as jq would return an empty string for nulls.
padd_data=$(echo "${response}" | jq -r 'paths(scalars | true) as $p | [$p | join(".")] + [if getpath($p)!=null then getpath($p) else "null" end] | join("=")' 2>/dev/null)
# 'tostring' is necessary because jq < 1.6 does not convert numbers and bools automatically
padd_data=$(echo "${response}" | jq -r 'paths(scalars | true) as $p | [[$p | .[] | tostring] | join(".")] + [if getpath($p)!=null then (getpath($p) | tostring) else "null" end] | join("=")' 2>/dev/null)
fi
}