Skip to content

Commit

Permalink
Merge pull request #824 from CleverCloud/feat/options/locale
Browse files Browse the repository at this point in the history
feat(addon): enable string value for defined option keys
  • Loading branch information
hsablonniere authored Oct 16, 2024
2 parents 0b9e4d9 + 9f36289 commit 81b01d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/models/addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ export function parseAddonOptions (options) {
else if (value === 'false' || value === 'disabled') {
formattedValue = 'false';
}
else if (typeof key === 'string') {
formattedValue = value;
}
else {
throw new Error(`Can't parse option value: ${value}. Accepted values are: enabled, disabled, true, false`);
}
Expand Down

0 comments on commit 81b01d3

Please sign in to comment.