Skip to content

Commit

Permalink
updated error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rejain456 committed Jan 17, 2025
1 parent 870f709 commit f26cdd4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cns/middlewares/k8sSwiftV2_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ var errIngress error
var errEgress error

func init() {
defaultDenyEgressPolicy, err = getEndpointPolicy(policy.ACLPolicy, cns.ActionTypeBlock, cns.DirectionTypeIn, 10_000)
if err != nil {
logger.Errorf("failed to add default deny egress acl's for pod with err %v", err)
defaultDenyEgressPolicy, errIngress = getEndpointPolicy(policy.ACLPolicy, cns.ActionTypeBlock, cns.DirectionTypeIn, 10_000)
if errIngress != nil {
logger.Errorf("failed to add default deny egress acl's for pod with err %v", errIngress)
}
defaultDenyIngressPolicy, err = getEndpointPolicy(policy.ACLPolicy, cns.ActionTypeBlock, cns.DirectionTypeOut, 10_000)
if err != nil {
logger.Errorf("failed to add default deny ingress acl's for pod with err %v", err)
defaultDenyIngressPolicy, errEgress = getEndpointPolicy(policy.ACLPolicy, cns.ActionTypeBlock, cns.DirectionTypeOut, 10_000)
if errEgress != nil {
logger.Errorf("failed to add default deny ingress acl's for pod with err %v", errEgress)
}
}

Expand Down

0 comments on commit f26cdd4

Please sign in to comment.