Skip to content

Commit

Permalink
Adding changes in the fix for cos deletion access denied issue (#5085)
Browse files Browse the repository at this point in the history
* Adding the fix for cos deletion access denied issue

* Addressing the review comments
  • Loading branch information
IBM-diksha authored Jan 30, 2024
1 parent 998a204 commit 111c004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibm/service/cos/resource_ibm_cos_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ func resourceIBMCOSBucketExists(d *schema.ResourceData, meta interface{}) (bool,
if resp != nil && resp.StatusCode == 404 {
return false, nil
}
fmt.Println(fmt.Errorf("[WARN] Error getting resource instance from cos bucket: %s with resp code: %s", err, resp))
return false, fmt.Errorf("[WARN] Error getting resource instance from cos bucket: %s with resp code: %s", err, resp)
}
if instance != nil && (strings.Contains(*instance.State, "removed") || strings.Contains(*instance.State, "pending_reclamation")) {
log.Printf("[WARN] Removing instance from state because it's in removed or pending_reclamation state from the cos bucket resource")
Expand Down

0 comments on commit 111c004

Please sign in to comment.