Update backend/remote-state/azure/client.go

Co-authored-by: Tom Harvey <tombuildsstuff@users.noreply.github.com>
This commit is contained in:
Matthew Frahry 2021-02-15 12:04:07 -08:00 committed by GitHub
parent d4db1d1342
commit f52a18b134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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