mirror of
https://github.com/coreos/fedora-coreos-config.git
synced 2026-11-03 22:59:47 -09:00
tests/kola/commonlib: Fix get_fcos_stream for container case
Get the stream from the `com.coreos.stream` annotation from the container image.
This commit is contained in:
parent
bd70499375
commit
eb805db1d5
1 changed files with 3 additions and 1 deletions
|
|
@ -34,8 +34,10 @@ get_fedora_minimal_container_ref() {
|
|||
echo "${repo}:${tag}"
|
||||
}
|
||||
|
||||
# Look for the "com.coreos.stream" annotation from the container image
|
||||
get_fcos_stream() {
|
||||
rpm-ostree status -b --json | jq -r '.deployments[0]["base-commit-meta"]["fedora-coreos.stream"]'
|
||||
rpm-ostree status -b --json \
|
||||
| jq --raw-output '.deployments[0]."base-commit-meta"."ostree.container.image-config" | fromjson | .config.Labels."com.coreos.stream"'
|
||||
}
|
||||
|
||||
is_fcos() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue