You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2022/09/08 14:20:08 UTC

[camel-k] 02/05: fix: OpenAPI trait should not run when waiting for platform

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

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

commit 327f06dda351b4f32d076b0ab27057897c9e0eeb
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Wed Sep 7 15:13:57 2022 +0200

    fix: OpenAPI trait should not run when waiting for platform
---
 pkg/trait/openapi.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/trait/openapi.go b/pkg/trait/openapi.go
index 36425b004..813bf5205 100644
--- a/pkg/trait/openapi.go
+++ b/pkg/trait/openapi.go
@@ -65,7 +65,7 @@ func (t *openAPITrait) IsPlatformTrait() bool {
 }
 
 func (t *openAPITrait) Configure(e *Environment) (bool, error) {
-	if e.Integration == nil || !pointer.BoolDeref(t.Enabled, true) {
+	if !e.IntegrationInPhase(v1.IntegrationPhaseInitialization) || !pointer.BoolDeref(t.Enabled, true) {
 		return false, nil
 	}