Skip to content

Commit

Permalink
fix(cf): wrong logic when find cfo has been installed (opendatahub-io…
Browse files Browse the repository at this point in the history
…#717)

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
  • Loading branch information
zdtsw authored Nov 9, 2023
1 parent 18b00eb commit 86aad1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/codeflare/codeflare.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (c *CodeFlare) ReconcileComponent(cli client.Client, owner metav1.Object, d

if found, err := deploy.OperatorExists(cli, dependentOperator); err != nil {
return err
} else if !found {
} else if found {
return fmt.Errorf("operator %s found. Please uninstall the operator before enabling %s component",
dependentOperator, ComponentName)
}
Expand Down

0 comments on commit 86aad1c

Please sign in to comment.