utils: Fix unused parameter

Actually make use of the `requested_version` parameter in
`kata-manager.sh` and added a comment.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2022-02-15 13:37:32 +00:00
parent 601be4e63b
commit 4755d004a7

View File

@ -330,6 +330,8 @@ github_download_package()
{
local releases_url="${1:-}"
local requested_version="${2:-}"
# Only used for error message
local project="${3:-}"
[ -z "$releases_url" ] && die "need releases URL"
@ -337,7 +339,7 @@ github_download_package()
local version=$(github_resolve_version_to_download \
"$releases_url" \
"$version" || true)
"$requested_version" || true)
[ -z "$version" ] && die "Unable to determine $project version to download"