From 47b3ed6a4dfa847139f0da337ff40f7360a7b255 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Sat, 16 Oct 2021 20:57:32 +0200 Subject: [PATCH] hotfix/Fix cml runner with no cloud metadata; bump 0.7.6 (#770) * Fix cml runner with no cloud metadata * Fix snapshot tests * 0.7.6 --- bin/cml/runner.js | 1 + bin/cml/runner.test.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/cml/runner.js b/bin/cml/runner.js index 91df42088..326dadb7f 100755 --- a/bin/cml/runner.js +++ b/bin/cml/runner.js @@ -473,6 +473,7 @@ exports.builder = (yargs) => cloudMetadata: { type: 'array', string: true, + default: [], coerce: (items) => { const keyValuePairs = items.map((item) => [ ...item.split(/=(.+)/), diff --git a/bin/cml/runner.test.js b/bin/cml/runner.test.js index dee59c673..727317ec8 100644 --- a/bin/cml/runner.test.js +++ b/bin/cml/runner.test.js @@ -44,7 +44,7 @@ Options: native types like i.e. t2.micro [string] --cloud-metadata Key Value pairs to associate cml-runner instance on the provider i.e. tags/labels \\"key=value\\" - [array] + [array] [default: []] --cloud-gpu GPU type. [string] [choices: \\"nogpu\\", \\"k80\\", \\"v100\\", \\"tesla\\"] --cloud-hdd-size HDD size in GB [number] diff --git a/package-lock.json b/package-lock.json index 2d87217d4..9d4fb0dc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@dvcorg/cml", - "version": "0.7.5", + "version": "0.7.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bcc0976e6..aceb1912c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dvcorg/cml", - "version": "0.7.5", + "version": "0.7.6", "author": { "name": "DVC", "url": "http://cml.dev"