Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions network/policy/policy_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,11 @@ func GetPolicyType(policy Policy) CNIPolicyType {
}

// Check if the type is ACLPolicy
if policy.Type == ACLPolicy {
return ACLPolicy
var aclPolicy hcn.AclPolicySetting
if err := json.Unmarshal(policy.Data, &aclPolicy); err == nil {
if aclPolicy.Action != "" {
return ACLPolicy
}
}

// Return empty string if the policy type is invalid
Expand Down