Skip to content

Commit

Permalink
fix = sign for inputs value (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
zongUMR committed Aug 18, 2021
1 parent b2a0ebf commit fdee9ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cli/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,8 +898,11 @@ const parseCliInputs = () => {

// convert the raw inputs array to the familiar inputs object
const cliInputs = rawInputs.reduce((accum, rawInput) => {
const key = rawInput.split('=')[0];
const value = rawInput.split('=')[1];
const dividedValue = rawInput.split('=');

const key = dividedValue[0];
// If the value contains `=` symbol, like --inputs name="value1=value2", we should join the all values together, otherwise it will be {name: value1}
const value = dividedValue.length > 2 ? dividedValue.slice(1).join('=') : dividedValue[1];

accum[key] = setCliInputValueType(value);

Expand Down
1 change: 1 addition & 0 deletions src/legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const nestedTemplateKeywords = new Set([
'dev',
'logs',
'invoke',
'credentials',
]);

const runningComponents = () => {
Expand Down

0 comments on commit fdee9ce

Please sign in to comment.