Skip to content

Commit

Permalink
Fix err
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Jul 1, 2022
1 parent f5a4bdb commit 8bc71a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/devfile/adapters/kubernetes/component/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ func (a Adapter) Push(parameters common.PushParameters) (err error) {
}
}
err = libdevfile.ExecuteCommandByNameAndKind(a.Devfile, cmdName, cmdKind, &cmdHandler, false)
if err != nil {
return err
}
}

if podChanged {
Expand All @@ -395,7 +398,7 @@ func (a Adapter) Push(parameters common.PushParameters) (err error) {
return fmt.Errorf("fail starting the port forwarding: %w", err)
}

return err
return nil
}

func (a *Adapter) createOrUpdateComponent(componentExists bool, ei envinfo.EnvSpecificInfo, isMainStorageEphemeral bool) (err error) {
Expand Down

0 comments on commit 8bc71a6

Please sign in to comment.