You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2019/07/06 15:32:02 UTC

[camel-k] branch master updated: fix: Nil pointer on build failure recovery

This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new efa72a4  fix: Nil pointer on build failure recovery
efa72a4 is described below

commit efa72a4851a20e451a86f1c5f97ef85cbfaa2486
Author: James Netherton <ja...@gmail.com>
AuthorDate: Thu Jul 4 10:43:40 2019 +0100

    fix: Nil pointer on build failure recovery
    
    fixes #804
---
 pkg/controller/build/recovery.go | 1 -
 1 file changed, 1 deletion(-)

diff --git a/pkg/controller/build/recovery.go b/pkg/controller/build/recovery.go
index f7abc97..1d8d7a9 100644
--- a/pkg/controller/build/recovery.go
+++ b/pkg/controller/build/recovery.go
@@ -87,7 +87,6 @@ func (action *errorRecoveryAction) Handle(ctx context.Context, build *v1alpha1.B
 		return nil, nil
 	}
 
-	build.Status = v1alpha1.BuildStatus{}
 	build.Status.Phase = v1alpha1.BuildPhaseInitialization
 	build.Status.Failure.Recovery.Attempt++
 	build.Status.Failure.Recovery.AttemptTime = metav1.Now()