mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
fixes Plugin.cliPromptSelectRegion (replace hardcoded amount of regions with a call to ProviderAws)
This commit is contained in:
parent
da7a3a4d27
commit
6cd6dd7b2d
@ -194,7 +194,7 @@ module.exports = function(S) {
|
||||
} else {
|
||||
|
||||
// Make sure there are regions left in stage
|
||||
if (S.getProject().getAllRegions(stage).length === 4) {
|
||||
if (S.getProject().getAllRegions(stage).length === S.getProvider('aws').validRegions.length) {
|
||||
return BbPromise.reject(new SError('Stage ' + stage + ' already have all possible regions.', SError.errorCodes.UNKNOWN));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user