mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix stage create
This commit is contained in:
parent
11b908cfee
commit
b71841cfc9
@ -271,7 +271,7 @@ class ServerlessPlugin {
|
||||
if (region) return BbPromise.resolve(region);
|
||||
|
||||
// If stage has one region, skip prompt and return that instead
|
||||
if (_this.S._projectJson.stages[stage].length === 1 && addAllRegions) {
|
||||
if (stage && _this.S._projectJson.stages[stage].length === 1 && addAllRegions) {
|
||||
return BbPromise.resolve(_this.S._projectJson.stages[stage][0].region);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user