Skip to content

Commit

Permalink
resource/alicloud_nlb_listener: Improved error handle when destroying…
Browse files Browse the repository at this point in the history
… nlb listener.
  • Loading branch information
ChenHanZhang committed Sep 25, 2024
1 parent 136553c commit 9c4bdca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions alicloud/resource_alicloud_nlb_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,9 @@ func resourceAliCloudNlbListenerDelete(d *schema.ResourceData, meta interface{})
})

if err != nil {
if IsExpectedErrors(err, []string{"ResourceNotFound.listener"}) {
return nil
}
return WrapErrorf(err, DefaultErrorMsg, d.Id(), action, AlibabaCloudSdkGoERROR)
}

Expand Down

0 comments on commit 9c4bdca

Please sign in to comment.