lib: yq: explode anchors to get real value of image values

yq is not exploding anchors anymore and requiere an extra flag.

Add flag to fix CI.

Fixes: #934

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz 2020-02-13 20:53:32 +00:00
parent 8cf66ce86b
commit ea8b7754ba

View File

@ -57,7 +57,7 @@ get_from_kata_deps() {
echo "Download from ${yaml_url}" >&2 echo "Download from ${yaml_url}" >&2
curl --silent -o "${versions_file}" "$yaml_url" curl --silent -o "${versions_file}" "$yaml_url"
fi fi
result=$("${GOPATH}/bin/yq" read "$versions_file" "$dependency") result=$("${GOPATH}/bin/yq" read -X "$versions_file" "$dependency")
[ "$result" = "null" ] && result="" [ "$result" = "null" ] && result=""
echo "$result" echo "$result"
} }