CLI JSON updates (#962)

See Changelog for details.
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-02-25 12:43:17 -05:00
1 parent b967ff7f05
commit 72aa110f72
50 files changed
+489 -540

No files matched your search

+2 -2
View File
@@ -28,12 +28,12 @@ function assoc_host_set_host() {
function host_set_id() {
local name=$1
local hcid=$2
strip $(list_host_sets $hcid | jq -c ".[] | select(.name | contains(\"$name\")) | .[\"id\"]")
strip $(list_host_sets $hcid | jq -c ".items[] | select(.name | contains(\"$name\")) | .[\"id\"]")
}
function host_set_host_ids() {
local id=$1
ids=$(read_host_set $id | jq '.["host_ids"]')
ids=$(read_host_set $id | jq '.item["host_ids"]')
echo "ids $ids"
}