Skip to content

Commit 75ef3c6

Browse files
committed
Add FIPS disabled components flag
Signed-off-by: Pavol Loffay <[email protected]>
1 parent da97ba3 commit 75ef3c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/fips/check.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type FipsCheck struct {
3434
}
3535

3636
// NewFipsCheck creates new FipsCheck.
37-
// It checks if FIPS is enabled on the platform in /proc/sys/crypto/fips_enabled
37+
// It checks if FIPS is enabled on the platform in /proc/sys/crypto/fips_enabled.
3838
func NewFipsCheck(receivers, exporters, processors, extensions []string) FipsCheck {
3939
return FipsCheck{
4040
isFIPSEnabled: isFipsEnabled(),
@@ -75,7 +75,7 @@ func (fips FipsCheck) Check(receivers map[string]interface{}, exporters map[stri
7575
}
7676

7777
func isBlackListed(blackListed map[string]bool, cfg map[string]interface{}) string {
78-
for id, _ := range cfg {
78+
for id := range cfg {
7979
component := strings.Split(id, "/")[0]
8080
if blackListed[component] {
8181
return component

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,5 +567,5 @@ func parseFipsFlag(fipsFlag string) ([]string, []string, []string, []string) {
567567
}
568568
}
569569
}
570-
return receivers, exporters, processors, exporters
570+
return receivers, exporters, processors, extensions
571571
}

0 commit comments

Comments
 (0)