Skip to content

Commit

Permalink
backend/azurerm: fixing a bug where locks couldn't be unlocked (#19441)
Browse files Browse the repository at this point in the history
Fixes #17046
  • Loading branch information
tombuildsstuff authored Nov 22, 2018
1 parent fc75cb7 commit e437fea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/remote-state/azure/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ func (c *RemoteClient) Unlock(id string) error {
return lockErr
}

c.leaseID = lockInfo.ID
if err := c.writeLockInfo(nil); err != nil {
lockErr.Err = fmt.Errorf("failed to delete lock info from metadata: %s", err)
return lockErr
Expand Down

0 comments on commit e437fea

Please sign in to comment.