Fix for #27809
This commit is contained in:
parent
3546650ac6
commit
0bbb0dc200
|
@ -110,7 +110,7 @@ func (c *RemoteClient) Delete() error {
|
|||
ctx := context.TODO()
|
||||
resp, err := c.giovanniBlobClient.Delete(ctx, c.accountName, c.containerName, c.keyName, options)
|
||||
if err != nil {
|
||||
if resp.Response.StatusCode != 404 {
|
||||
if !resp.IsHTTPStatus(http.StatusNotFound) {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ func (c *RemoteClient) Lock(info *statemgr.LockInfo) (string, error) {
|
|||
properties, err := c.giovanniBlobClient.GetProperties(ctx, c.accountName, c.containerName, c.keyName, blobs.GetPropertiesInput{})
|
||||
if err != nil {
|
||||
// error if we had issues getting the blob
|
||||
if properties.Response.StatusCode != 404 {
|
||||
if !properties.Response.IsHTTPStatus(http.StatusNotFound) {
|
||||
return "", getLockInfoErr(err)
|
||||
}
|
||||
// if we don't find the blob, we need to build it
|
||||
|
|
Loading…
Reference in New Issue