Merge pull request #212 from Nopik/deployendpoint

Fixed stage setting when stage prompt is used for `jaws deploy endpoint`
This commit is contained in:
Austen 2015-10-10 09:42:01 -07:00
commit 2bf8127ff0

View File

@ -143,7 +143,12 @@ CMD.prototype._promptStage = Promise.method(function() {
});
}
return JawsCli.select('Select a stage to deploy to: ', choices, false);
return JawsCli.select('Select a stage to deploy to: ', choices, false)
.then(function(selectedStages){
if( selectedStages && (selectedStages.length > 0) ) {
_this._stage = selectedStages[0].value;
}
});
});
/**