Skip to content

Commit

Permalink
Add missing variable assignments in privateCA cert authority (#4959) (#…
Browse files Browse the repository at this point in the history
…9532)

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Jul 8, 2021
1 parent 29f69ad commit 2496122
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/4959.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
5 changes: 3 additions & 2 deletions google/resource_privateca_certificate_authority.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,13 +836,14 @@ func resourcePrivatecaCertificateAuthorityDelete(d *schema.ResourceData, meta in

log.Printf("[DEBUG] Disabling CertificateAuthority: %#v", obj)

res, err = sendRequest(config, "POST", billingProject, disableUrl, userAgent, nil)
dRes, err := sendRequest(config, "POST", billingProject, disableUrl, userAgent, nil)
if err != nil {
return fmt.Errorf("Error disabling CertificateAuthority: %s", err)
}

var opRes map[string]interface{}
err = privatecaOperationWaitTimeWithResponse(
config, res, &opRes, project, "Disabling CertificateAuthority", userAgent,
config, dRes, &opRes, project, "Disabling CertificateAuthority", userAgent,
d.Timeout(schema.TimeoutDelete))
if err != nil {
return fmt.Errorf("Error waiting to disable CertificateAuthority: %s", err)
Expand Down

0 comments on commit 2496122

Please sign in to comment.