backend/azurerm: fixing a bug where locks couldn't be unlocked (#19441)
Fixes #17046
This commit is contained in:
parent
fc75cb7e3c
commit
e437feadc2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue