Skip to content

Commit

Permalink
Rename depreciation message
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericbarthelet committed Sep 23, 2020
1 parent 1c927bc commit 0e98202
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/deprecations.md
Expand Up @@ -74,7 +74,7 @@ Please use `onUnauthenticatedRequest` instead. `allowUnauthenticated` will be re

Please use `bin/serverless.js` instead. `bin/serverless` will be removed with v2.0.0

<a name="SERVICE_DEPRECATED_PROPERTY_AWS_KMS_KEY_ARN"><div>&nbsp;</div></a>
<a name="AWS_KMS_KEY_ARN"><div>&nbsp;</div></a>

## awsKmsKeyArn references

Expand Down
4 changes: 2 additions & 2 deletions lib/plugins/aws/package/compile/functions/index.js
Expand Up @@ -214,7 +214,7 @@ class AwsCompileFunctions {
const serviceObj = this.serverless.service.serviceObject;
if (serviceObj && serviceObj.awsKmsKeyArn) {
this.serverless._logDeprecation(
'SERVICE_DEPRECATED_PROPERTY_AWS_KMS_KEY_ARN',
'AWS_KMS_KEY_ARN',
'Starting with next major version, awsKmsKeyArn service property will be replaced by provider.kmsKeyArn'
);
kmsKeyArn = serviceObj.awsKmsKeyArn;
Expand All @@ -224,7 +224,7 @@ class AwsCompileFunctions {
}
if (functionObject.awsKmsKeyArn) {
this.serverless._logDeprecation(
'FUNCTION_DEPRECATED_PROPERTY_AWS_KMS_KEY_ARN',
'AWS_KMS_KEY_ARN',
'Starting with next major version, awsKmsKeyArn function property will be replaced by kmsKeyArn'
);
kmsKeyArn = functionObject.awsKmsKeyArn;
Expand Down

0 comments on commit 0e98202

Please sign in to comment.