From ea1706a734420de4cb0bcdd3b88396c671e31d67 Mon Sep 17 00:00:00 2001 From: Lan Date: Sun, 2 Jul 2023 06:14:15 +0800 Subject: [PATCH] fix: Azure input artifact support optional. Fixes #11179 (#11235) Signed-off-by: Lan Liang Signed-off-by: Dillen Padhiar --- workflow/artifacts/azure/azure.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/artifacts/azure/azure.go b/workflow/artifacts/azure/azure.go index 645badd32d1c..5a9441b0f4a9 100644 --- a/workflow/artifacts/azure/azure.go +++ b/workflow/artifacts/azure/azure.go @@ -127,9 +127,9 @@ func (azblobDriver *ArtifactDriver) Load(artifact *wfv1.Artifact, path string) e return fmt.Errorf("unable to determine if %s is a directory: %s", artifact.Azure.Blob, err) } - // It's not a directory and the file doesn't exist, so return the original BlobNotFound error. + // It's not a directory and the file doesn't exist, Return the original NoSuchKey error. if !isDir && !isEmptyFile { - return fmt.Errorf("unable to download blob %s: %s", artifact.Azure.Blob, origErr) + return argoerrors.New(argoerrors.CodeNotFound, origErr.Error()) } // When we tried to download the blob as a file, we created an empty file for the