Skip to content

Commit

Permalink
Minor: More debugging
Browse files Browse the repository at this point in the history
For some reason, it seems to still be possible for `get_manifest_tags()`
to return non-zero despite `result_json` being an empty list.  Add some
more debugging to the function to help figure out why.

Signed-off-by: Chris Evich <[email protected]>
  • Loading branch information
cevich committed Apr 23, 2024
1 parent f27c7ae commit 2cdb0b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build-push/bin/build-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,13 @@ get_manifest_tags() {
die "Error obtaining image names from '$FQIN' manifest-list search result:
$result_json"
fi

dbg "Sorting fqin_names"
# Don't emit an empty newline when the list is empty
[[ -z "$fqin_names" ]] || \
sort <<< "$fqin_names"
sort <<<"$fqin_names"
fi
dbg "get_manifest_tags() returning successfully"
}

push_images() {
Expand Down

0 comments on commit 2cdb0b1

Please sign in to comment.