Skip to content

Commit

Permalink
ci: fix helper script for upgrade OS
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Devulder <[email protected]>
  • Loading branch information
ldevulder committed Oct 3, 2023
1 parent 54c448b commit a0f7a71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/scripts/get-name-from-managedosversion
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ case ${KIND_OF_OS} in
esac

# Get the value
# NOTE: check for ISO only, as we can only build an image with ISO and SeedImage
VALUE=$(cat ${FILE_TO_CHECK} \
| jq -r ".items[] | select(.spec.metadata.displayName | contains(\"unstable\")${INVERTED}).metadata.name" 2>/dev/null \
# NOTE: don't check for ISO, only container images are used for upgrade
VALUE=$(jq -r ".items[] | select(.spec.metadata.displayName | contains(\"unstable\")${INVERTED}).metadata.name" 2>/dev/null ${FILE_TO_CHECK} \
| grep -v '\-iso$' \
| sort \
| tail -1)
Expand Down

0 comments on commit a0f7a71

Please sign in to comment.