Skip to content
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

Investigate aws_emr_cluster d.Set() errors only logging instead of returning errors #3652

Closed
bflad opened this issue Mar 7, 2018 · 2 comments
Labels
service/emr Issues and PRs that pertain to the emr service. technical-debt Addresses areas of the codebase that need refactoring or redesign.
Milestone

Comments

@bflad
Copy link
Contributor

bflad commented Mar 7, 2018

It seems like all instances of:

	if err := d.Set("...", ...); err != nil {
		log.Printf("[ERR] Error setting ... for cluster (%s): %s", d.Id(), err)
	}

Should really be:

	if err := d.Set("...", ...); err != nil {
		return fmt.Errorf("error setting ... for cluster (%s): %s", d.Id(), err)
	}

There might be a historical reason for this current behavior though.

Terraform Version

Terraform 0.10+
All AWS provider versions

Affected Resource(s)

  • aws_emr_cluster

References

https://github.com/terraform-providers/terraform-provider-aws/blob/7a6a106542fadb4d2a52883e673d3d6dbd63219e/aws/resource_aws_emr_cluster.go#L566

@bflad bflad added service/emr Issues and PRs that pertain to the emr service. technical-debt Addresses areas of the codebase that need refactoring or redesign. labels Mar 7, 2018
@bflad bflad added this to the v1.56.0 milestone Jan 11, 2019
@bflad
Copy link
Contributor Author

bflad commented Jan 11, 2019

Resolved by #4488 / #6498!

@bflad bflad closed this as completed Jan 11, 2019
@ghost
Copy link

ghost commented Apr 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/emr Issues and PRs that pertain to the emr service. technical-debt Addresses areas of the codebase that need refactoring or redesign.
Projects
None yet
Development

No branches or pull requests

1 participant