-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/aws: Prevent crashing when deleting ecs_service which is gone #3914
Conversation
aeeca5b
to
0822776
Compare
Looks good @radeksimko 👍 |
provider/aws: Prevent crashing when deleting ecs_service which is gone
@@ -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) |
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.
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
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.
I'm fixing this...
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.
doh... sorry about that!
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.
I wonder why Travis didn't pick this up btw.
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.
Fixed in #3943
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.
Thx 👍
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.
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 😄
…nal-sidebar-sort docs: Sort WAF(regional) links in sidebar
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. |
fixes #3868 and also addresses #3829 (comment)