Merge pull request #11619 from johngmyers/dup-file-copy

Fix duplicate CopyFile tasks
This commit is contained in:
Kubernetes Prow Robot 2021-05-28 01:28:24 -07:00 committed by GitHub
commit 4f0ade6cb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ func (l *Loader) addAssetFileCopyTasks(assets []*assets.FileAsset, lifecycle *fi
Lifecycle: lifecycle,
}
context.AddTask(copyFileTask)
if err := context.EnsureTask(copyFileTask); err != nil {
return fmt.Errorf("error adding asset-copy task: %v", err)
}
l.tasks = context.Tasks
}