Skip to content

Commit

Permalink
use positive logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jdn5126 committed Dec 8, 2022
1 parent 685feaf commit 81e27d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/aws-vpc-cni/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func validateEnvVars() bool {
func maybeEnableNftables() error {
// By default, VPC CNI container uses iptables-legacy. Update to iptables-nft when env var is set
nftables := getEnv(envEnableNftables, defaultEnableNftables)
if nftables != "false" {
if nftables == "true" {
log.Infof("Updating iptables mode to nft")
var cmd *exec.Cmd
// Command output is not suppressed so that log shows iptables mode being set
Expand Down

0 comments on commit 81e27d3

Please sign in to comment.