mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Bug fix in toBool casting
This commit is contained in:
parent
34bf4e5955
commit
2c75e1f6ca
@ -828,10 +828,10 @@ class Variables {
|
||||
}
|
||||
|
||||
getValueToBool(variableString) {
|
||||
if (/^true$/.test(variableString)) {
|
||||
if (/^toBool:true$/.test(variableString)) {
|
||||
return BbPromise.resolve(true);
|
||||
}
|
||||
else if (/^false$/.test(variableString)) {
|
||||
else if (/^toBool:false$/.test(variableString)) {
|
||||
return BbPromise.resolve(false);
|
||||
}
|
||||
return BbPromise.resolve(true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user