EndpointDeploy: fix nameTemplate bug

This commit is contained in:
Austen Collins 2016-02-07 17:49:59 -08:00
parent 98e7cab81f
commit cbe4cde9c5

View File

@ -161,7 +161,7 @@ module.exports = function(SPlugin, serverlessPath) {
if (!_this.endpoint) BbPromise.reject(new SError(`Endpoint could not be found: ${_this.evt.options.path}`));
// Set function name
_this.functionName = _this.function.getDeployedName({
_this.functionName = _this.endpoint.getFunction().getDeployedName({
stage: _this.evt.options.stage,
region: _this.evt.options.region
});