File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,9 @@ function ubuntu_image_url_latest() {
176176 [\" ${base_url} \" +.path, \" sha256:\" +.sha256, \$ release] | @tsv
177177 ] | last
178178 "
179- location_digest_release=$( jq -e -r " ${jq_filter} " " ${ubuntu_downloaded_json} " )
180-
179+ location_digest_release=$( jq -r " ${jq_filter} " " ${ubuntu_downloaded_json} " )
180+ [[ ${location_digest_release} != " null" ]] ||
181+ error_exit " The URL for ubuntu-${version} -${flavor} -cloudimg-${arch}${path_suffix} is not provided at ${ubuntu_base_urls[${flavor}]} ."
181182 local location digest release location_using_version
182183 read -r location digest release <<< " ${location_digest_release}"
183184 location=$( validate_url " ${location} " )
@@ -199,7 +200,9 @@ function ubuntu_image_url_release() {
199200 .release
200201 ] | first
201202 "
202- release=$( jq -e -r " ${jq_filter} " " ${ubuntu_downloaded_json} " )
203+ release=$( jq -r " ${jq_filter} " " ${ubuntu_downloaded_json} " )
204+ [[ ${release} != " null" ]] ||
205+ error_exit " The URL for ubuntu-${version} -${flavor} -cloudimg-${arch}${path_suffix} is not provided at ${ubuntu_base_urls[${flavor}]} ."
203206 location=$( validate_url " ${base_url}${release} /release/ubuntu-${version} -${flavor} -cloudimg-${arch}${path_suffix} " )
204207 location=$( ubuntu_image_url_try_replace_release_with_version " ${location} " " ${release} " " ${version} " )
205208 arch=$( limayaml_arch " ${arch} " )
You can’t perform that action at this time.
0 commit comments