Skip to content

Commit 4e565ca

Browse files
authored
Major and minor versions are strings (#301)
1 parent 867561e commit 4e565ca

File tree

1 file changed

+1
-1
lines changed
  • platform/onebox/backup_and_restore/packages

1 file changed

+1
-1
lines changed

platform/onebox/backup_and_restore/packages/export.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function download_ml_package() {
193193
fetch_ml_package_versions_by_ml_package_id $ml_package_id $project_id
194194

195195
# Fetch ML package version fron list of versions
196-
ml_package_version=$(echo "$mlpackage_versions_of_ml_package" | jq '.data.dataList[] | select((.version != null) and (.trainingVersion != null) and (.version=='$major_ml_package_version' and .trainingVersion=='$minor_ml_package_version')) | select(.status == ("UNDEPLOYED", "DEPLOYED", "DEPLOYING"))')
196+
ml_package_version=$(echo "$mlpackage_versions_of_ml_package" | jq '.data.dataList[] | select((.version != null) and (.trainingVersion != null) and (.version=="'$major_ml_package_version'" and .trainingVersion=="'$minor_ml_package_version'")) | select(.status == ("UNDEPLOYED", "DEPLOYED", "DEPLOYING"))')
197197

198198
if [ ! -z "$ml_package_version" ]; then
199199
echo "$(date) ML package verison $ML_PACKAGE_VERSION fetched successfully"

0 commit comments

Comments
 (0)