Skip to content

Commit

Permalink
Update client var name
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfrahry authored and tombuildsstuff committed May 19, 2020
1 parent c597900 commit 432fb48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/remote-state/azure/backend_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ func (b *Backend) DeleteWorkspace(name string) error {
}

ctx := context.TODO()
gClient, err := b.armClient.getBlobClient(ctx)
client, err := b.armClient.getBlobClient(ctx)
if err != nil {
return err
}

if resp, err := gClient.Delete(ctx, b.armClient.storageAccountName, b.containerName, b.path(name), blobs.DeleteInput{}); err != nil {
if resp, err := client.Delete(ctx, b.armClient.storageAccountName, b.containerName, b.path(name), blobs.DeleteInput{}); err != nil {
if resp.Response.StatusCode != 404 {
return err
}
Expand Down

0 comments on commit 432fb48

Please sign in to comment.