mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Merge pull request #212 from Nopik/deployendpoint
Fixed stage setting when stage prompt is used for `jaws deploy endpoint`
This commit is contained in:
commit
2bf8127ff0
@ -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;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user