mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Update backend/remote-state/azure/client.go
Co-authored-by: Tom Harvey <tombuildsstuff@users.noreply.github.com>
This commit is contained in:
parent
d4db1d1342
commit
f52a18b134
@ -39,7 +39,7 @@ func (c *RemoteClient) Get() (*remote.Payload, error) {
|
||||
ctx := context.TODO()
|
||||
blob, err := c.giovanniBlobClient.Get(ctx, c.accountName, c.containerName, c.keyName, options)
|
||||
if err != nil {
|
||||
if blob.Response.Response != nil && blob.Response.StatusCode == 404 {
|
||||
if blob.Response.IsHTTPStatus(http.StatusNotFound) {
|
||||
return nil, nil
|
||||
}
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user