Skip to content

Commit

Permalink
Fix initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Oct 13, 2023
1 parent 978b309 commit 6166064
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/pkg/agent/application/coordinator/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,10 @@ func (c *Coordinator) Upgrade(ctx context.Context, version string, sourceURI str

// initialize upgrade details
actionID := ""
detMetadata := details.DetailsMetadata{}
if action != nil {
actionID = action.ActionID
detMetadata.ScheduledAt = action.ActionStartTime
}
det := details.NewDetails(version, details.StateRequested, actionID, detMetadata)
det := details.NewDetails(version, details.StateRequested, actionID)
det.RegisterObserver(c.setUpgradeDetails)

cb, err := c.upgradeMgr.Upgrade(ctx, version, sourceURI, action, det, skipVerifyOverride, skipDefaultPgp, pgpBytes...)
Expand Down

0 comments on commit 6166064

Please sign in to comment.