mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
refactor: Use getCompiledTemplateS3Suffix from provider.naming
This makes sure that the specific `naming` instance really is the "source of truth".
This commit is contained in:
parent
f431218790
commit
95d3024ef5
@ -1,6 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
const getCompiledTemplateS3Suffix = require('../../lib/naming').getCompiledTemplateS3Suffix;
|
||||
const getS3EndpointForRegion = require('../../utils/getS3EndpointForRegion');
|
||||
const ServerlessError = require('../../../../serverless-error');
|
||||
|
||||
@ -8,7 +7,7 @@ module.exports = {
|
||||
async validateTemplate() {
|
||||
const bucketName = this.bucketName;
|
||||
const artifactDirectoryName = this.serverless.service.package.artifactDirectoryName;
|
||||
const compiledTemplateFileName = getCompiledTemplateS3Suffix();
|
||||
const compiledTemplateFileName = this.provider.naming.getCompiledTemplateS3Suffix();
|
||||
const s3Endpoint = getS3EndpointForRegion(this.provider.getRegion());
|
||||
this.serverless.cli.log('Validating template...');
|
||||
const params = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user