Skip to content

Commit

Permalink
Update internal/registry/types.bucket.go
Browse files Browse the repository at this point in the history
Co-authored-by: Wilken Rivera <[email protected]>
  • Loading branch information
lbajolet-hashicorp and Wilken Rivera authored Jun 28, 2022
1 parent 4c11abe commit 3091024
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/registry/types.bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func (b *Bucket) CreateInitialBuildForIteration(ctx context.Context, componentTy
}

// UpdateBuildStatus updates the status of a build entry on the HCP Packer registry with its current local status.
// For updating a build status to DONE use CompleteBuild.
func (b *Bucket) UpdateBuildStatus(ctx context.Context, name string, status models.HashicorpCloudPackerBuildStatus) error {
if status == models.HashicorpCloudPackerBuildStatusDONE {
return fmt.Errorf("do not use UpdateBuildStatus for updating to DONE")
Expand Down

0 comments on commit 3091024

Please sign in to comment.