Skip to content

Commit

Permalink
Remove whitelist and replace with allowed
Browse files Browse the repository at this point in the history
We want to remove insensitive terms from the codebase.

Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Jul 8, 2020
1 parent 5196521 commit 2bdcc04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/opts/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func ValidateSysctl(val string) (string, error) {
}
arr := strings.Split(val, "=")
if len(arr) < 2 {
return "", fmt.Errorf("sysctl '%s' is not whitelisted", val)
return "", fmt.Errorf("sysctl '%s' is not allowed", val)
}
if validSysctlMap[arr[0]] {
return val, nil
Expand All @@ -280,7 +280,7 @@ func ValidateSysctl(val string) (string, error) {
return val, nil
}
}
return "", fmt.Errorf("sysctl '%s' is not whitelisted", val)
return "", fmt.Errorf("sysctl '%s' is not allowed", val)
}

// FilterOpt is a flag type for validating filters
Expand Down

0 comments on commit 2bdcc04

Please sign in to comment.