-
Notifications
You must be signed in to change notification settings - Fork 216
fix: #287 don't include Tags property if no tags provided #288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: #287 don't include Tags property if no tags provided #288
Conversation
Global tags become optional for inheriting
@@ -99,7 +99,12 @@ module.exports = { | |||
let RoleArn; | |||
let DependsOn = []; | |||
let LoggingConfiguration; | |||
const Tags = toTags(this.serverless.service.provider.tags); | |||
let Tags; | |||
if (typeof stateMachineObj.inheritGlobalTags !== 'undefined' && stateMachineObj.inheritGlobalTags === false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would stateMachineObj.inheritGlobalTags === false
have sufficed without the explicit undefined
check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly?
I'm not as familiar with nodejs, but was trying to avoid a Key error if inheritGlobalTags
isn't included for the state machine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, I see, in this case you'll be fine, stateMachineObj.inheritGlobalTags === false
would not match if inheritGlobalTags
is missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @theburningmonk. Just pushed the update
🎉 This PR is included in version 2.14.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fix: serverless-operations#287 don't include Tags property if no tags provided
Global tags become optional for inheriting
fixes #287