Explorar el Código

Merge branch 'memory-tweaks-2' of github.com:opencost/opencost into memory-tweaks-2

Alex Meijer hace 4 semanas
padre
commit
d889a997c8
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      core/pkg/storage/azurestorage.go

+ 3 - 0
core/pkg/storage/azurestorage.go

@@ -287,6 +287,9 @@ func (b *AzureStorage) ReadToLocalFile(path, destPath string) error {
 
 	downloadResponse, err := b.containerClient.NewBlobClient(path).DownloadStream(ctx, nil)
 	if err != nil {
+		if b.IsObjNotFoundErr(err) {
+			return DoesNotExistError
+		}
 		return fmt.Errorf("AzureStorage: ReadToLocalFile: failed to download blob %q to %q: %w", path, destPath, err)
 	}
 	// NOTE: automatic retries are performed if the connection fails.