fixes Plugin.cliPromptSelectRegion (replace hardcoded amount of regions with a call to ProviderAws)

This commit is contained in:
Egor Kislitsyn 2016-04-14 20:01:51 +07:00
parent da7a3a4d27
commit 6cd6dd7b2d

View File

@ -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));
}