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

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

commit c0efdcccf51c84a2f2b7c80c3362da2178444a19
Author: Nicola Ferraro <[email protected]>
AuthorDate: Mon Feb 10 23:27:00 2020 +0100

    Fix #1223: fix wait for resources
---
 pkg/cmd/install.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pkg/cmd/install.go b/pkg/cmd/install.go
index 42c5128..8b973b8 100644
--- a/pkg/cmd/install.go
+++ b/pkg/cmd/install.go
@@ -200,10 +200,10 @@ func (o *installCmdOptions) install(cobraCmd 
*cobra.Command, _ []string) error {
                        if !installed {
                                fmt.Fprintln(cobraCmd.OutOrStdout(), "OLM 
resources are already available: skipping installation")
                        }
-               }
 
-               if err = install.WaitForAllCRDInstallation(o.Context, 
clientProvider, 90*time.Second); err != nil {
-                       return err
+                       if err = install.WaitForAllCRDInstallation(o.Context, 
clientProvider, 90*time.Second); err != nil {
+                               return err
+                       }
                }
        }
 

Reply via email to