Skip to content

Commit

Permalink
check if source posture checks are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer committed Nov 27, 2024
1 parent e49e570 commit c565562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/server/posture_checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (am *DefaultAccountManager) getPeerPostureChecks(account *Account, peerID s
}

for _, policy := range account.Policies {
if !policy.Enabled {
if !policy.Enabled || len(policy.SourcePostureChecks) == 0 {
continue
}

Expand Down

0 comments on commit c565562

Please sign in to comment.