Skip to content

Commit

Permalink
Merge pull request #11621 from johngmyers/automated-cherry-pick-of-#1…
Browse files Browse the repository at this point in the history
…1619-upstream-release-1.21

Automated cherry pick of #11619: Fix duplicate CopyFile tasks
  • Loading branch information
k8s-ci-robot committed May 28, 2021
2 parents 9e5a3d7 + 9e673ce commit bc556f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion upup/pkg/fi/cloudup/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
Expand Down

0 comments on commit bc556f8

Please sign in to comment.