Skip to content

Commit

Permalink
fix(executor): handle hdfs optional artifact at retriving hdfs file s…
Browse files Browse the repository at this point in the history
…tat (argoproj#6703)

Signed-off-by: Tianchu Zhao <[email protected]>
  • Loading branch information
tczhao authored Sep 13, 2021
1 parent 11657fe commit d1299ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workflow/artifacts/hdfs/hdfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ func (driver *ArtifactDriver) Load(_ *wfv1.Artifact, path string) error {

srcStat, err := hdfscli.Stat(driver.Path)
if err != nil {
if os.IsNotExist(err) {
return errors.New(errors.CodeNotFound, err.Error())
}
return err
}
if srcStat.IsDir() {
Expand Down

0 comments on commit d1299ec

Please sign in to comment.