fix(deploy): mark failed installation progress step
CI / validate (pull_request) Failing after 6m57s
CI / validate (pull_request) Failing after 6m57s
This commit is contained in:
@@ -203,6 +203,9 @@ func (s *LifecycleService) InstallOperation(ctx context.Context, instanceID, ope
|
||||
}
|
||||
state, err := s.agent.CreateInstance(ctx, plan)
|
||||
if err != nil {
|
||||
if progress, ok := s.repository.(ProgressRepository); ok {
|
||||
_ = progress.SetOperationStep(ctx, operationID, "installation", "failed")
|
||||
}
|
||||
return s.fail(ctx, operationID, instanceID, "agent_create_failed", err)
|
||||
}
|
||||
if progress, ok := s.repository.(ProgressRepository); ok {
|
||||
|
||||
Reference in New Issue
Block a user