diff --git a/pkg/cmd/join/exec.go b/pkg/cmd/join/exec.go index fb66d265e..003e8bfc9 100644 --- a/pkg/cmd/join/exec.go +++ b/pkg/cmd/join/exec.go @@ -144,11 +144,9 @@ func (o *Options) run() error { } output = append(output, out...) - if !o.ClusteradmFlags.DryRun { - if o.wait && !o.ClusteradmFlags.DryRun { - if err := wait.WaitUntilCRDReady(apiExtensionsClient, "klusterlets.operator.open-cluster-management.io"); err != nil { - return err - } + if o.wait && !o.ClusteradmFlags.DryRun { + if err := wait.WaitUntilCRDReady(apiExtensionsClient, "klusterlets.operator.open-cluster-management.io"); err != nil { + return err } }