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

provider/aws: Prevent crashing when deleting ecs_service which is gone #3914

Merged
merged 2 commits into from
Nov 16, 2015

Conversation

radeksimko
Copy link
Member

fixes #3868 and also addresses #3829 (comment)

@stack72
Copy link
Contributor

stack72 commented Nov 16, 2015

Looks good @radeksimko 👍

radeksimko added a commit that referenced this pull request Nov 16, 2015
provider/aws: Prevent crashing when deleting ecs_service which is gone
@radeksimko radeksimko merged commit a8ceda1 into hashicorp:master Nov 16, 2015
@radeksimko radeksimko deleted the b-aws-ecs-service-gone branch November 16, 2015 21:46
@@ -156,6 +156,8 @@ func resourceAwsEcsServiceRead(d *schema.ResourceData, meta interface{}) error {
}

if len(out.Services) < 1 {
log.Printf("[DEBUG] Removing ECS service %q because it's gone", service.ServiceArn)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

service here is undefined 😵

1 errors occurred:
--> darwin/amd64 error: exit status 2
Stderr: # github.com/hashicorp/terraform/builtin/providers/aws
builtin/providers/aws/resource_aws_ecs_service.go:159: undefined: service

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fixing this...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doh... sorry about that!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why Travis didn't pick this up btw.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #3943

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why Travis didn't pick this up btw.

I was wondering the same thing. Very strange 😕 Oh well, it's fixed, thanks for the follow up PR 😄

omeid pushed a commit to omeid/terraform that referenced this pull request Mar 30, 2018
…nal-sidebar-sort

docs: Sort WAF(regional) links in sidebar
@ghost
Copy link

ghost commented Apr 30, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash after taining/planning/applying ecs_service
3 participants