-
Notifications
You must be signed in to change notification settings - Fork 91
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
[BUG-255] - Fixing Issues with pipeline_metadata #256
Conversation
💚 CLA has been signed |
5f983f1
to
5de1b2a
Compare
@tobio , could you unblock this for me please. This is my first PR and hope to fix the bug raised in the Issues area. |
@@ -71,7 +71,7 @@ func ResourceLogstashPipeline() *schema.Resource { | |||
Optional: true, | |||
Elem: &schema.Schema{ | |||
Type: schema.TypeString, | |||
Default: nil, | |||
Default: "{}", |
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.
This sets a default value for individual metadata keys, not the entire metadata map. You likely want to define DiffSuppressFunc
on the actual pipeline_metadata
schema object.
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.
It feels like we should be able to include an acceptance test demonstrating the issue (and the fix) with this PR.
Thanks for the comments and guidance @tobio . Could you see if this is what you intended ? Appreciate the guidance as I'm starting my journey with Go here. |
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 for this @preyas-prakasan! Sorry about the delay in getting a review here.
No problem at all. Thanks for the guidance @tobio. |
Fixes #255