Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ukff committed Nov 26, 2024
1 parent 1dc22da commit 90588b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions common/runtime/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ type OperationsData struct {
}

type Operation struct {
State string `json:"state"`
Type OperationType `json:"type,omitempty"`
Description string `json:"description"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
OperationID string `json:"operationID"`
OrchestrationID string `json:"orchestrationID,omitempty"`
FinishedStages []string `json:"finishedStages"`
ExecutedButNotCompletedSteps []string `json:"executedButNotCompletedSteps,omitempty"`
Error kebError.LastError `json:"error,omitempty"`
State string `json:"state"`
Type OperationType `json:"type,omitempty"`
Description string `json:"description"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
OperationID string `json:"operationID"`
OrchestrationID string `json:"orchestrationID,omitempty"`
FinishedStages []string `json:"finishedStages"`
ExecutedButNotCompletedSteps []string `json:"executedButNotCompletedSteps,omitempty"`
Error *kebError.LastError `json:"error,omitempty"`
}

type RuntimesPage struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/error/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func TimeoutError(msg, step string) LastError {
Message: msg,
Reason: KEBTimeOutCode,
Component: KEBDependency,
Step: step,
Step: step,
}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/runtime/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (c *converter) applyOperation(source *internal.Operation, target *pkg.Opera
target.FinishedStages = source.FinishedStages
target.ExecutedButNotCompletedSteps = source.ExcutedButNotCompleted
if !reflect.DeepEqual(source.LastError, kebError.LastError{}) {
target.Error = source.LastError
target.Error = &source.LastError
}
}
}
Expand Down

0 comments on commit 90588b4

Please sign in to comment.