Skip to content

Commit d2b19ef

Browse files
committed
cliccl: fix FIPS-readiness check
The logic here is flipped. Release note: none Epic: DEVINF-1477
1 parent c6539d4 commit d2b19ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ccl/cliccl/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (f *requireFipsFlag) Set(s string) error {
4242
// this behavior globally (PersistentPreRun functions don't help because
4343
// they are inherited across different levels of the command hierarchy only
4444
// if that level does not have its own hook).
45-
if v && fips140.Enabled() {
45+
if v && !fips140.Enabled() {
4646
err := errors.WithHint(errors.New("FIPS readiness checks failed"), "Run `cockroach debug enterprise-check-fips` for details")
4747
clierror.OutputError(os.Stderr, err, true, false)
4848
exit.WithCode(exit.UnspecifiedError())

0 commit comments

Comments
 (0)