Skip to content

Commit

Permalink
Update api/environments/environment_handler.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey Smolnikov <[email protected]>
  • Loading branch information
Richard87 and satr authored Sep 4, 2024
1 parent 70b68a3 commit 00be7a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/environments/environment_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,8 @@ func (eh EnvironmentHandler) ResetManuallyStoppedComponentsInEnvironment(ctx con

log.Ctx(ctx).Info().Msgf("Starting components in environment %s, %s", envName, appName)
for _, deployComponent := range radixDeployment.Spec.Components {
if overide := deployComponent.GetReplicasOverride(); overide != nil && *overide == 0 {
err := eh.ResetScaledComponent(ctx, appName, envName, deployComponent.GetName(), true)
if err != nil {
if override := deployComponent.GetReplicasOverride(); override != nil && *override == 0 {
if err := eh.ResetScaledComponent(ctx, appName, envName, deployComponent.GetName(), true); err != nil {
return err
}
}
Expand Down

0 comments on commit 00be7a9

Please sign in to comment.