diff --git a/management/server/posture/checks.go b/management/server/posture/checks.go index 647e58312..073dc4460 100644 --- a/management/server/posture/checks.go +++ b/management/server/posture/checks.go @@ -49,7 +49,7 @@ type ChecksDefinition struct { OSVersionCheck *OSVersionCheck `json:",omitempty"` GeoLocationCheck *GeoLocationCheck `json:",omitempty"` PeerNetworkRangeCheck *PeerNetworkRangeCheck `json:",omitempty"` - ProcessCheck *ProcessCheck `json:"process_check"` + ProcessCheck *ProcessCheck `json:",omitempty"` } // Copy returns a copy of a checks definition. diff --git a/management/server/posture/process_test.go b/management/server/posture/process_test.go index bed2c8e49..271dde6f9 100644 --- a/management/server/posture/process_test.go +++ b/management/server/posture/process_test.go @@ -116,7 +116,7 @@ func TestProcessCheck_Check(t *testing.T) { isValid: false, }, { - name: "unsupported Ios operating system with matching processes", + name: "unsupported ios operating system with matching processes", input: peer.Peer{ Meta: peer.PeerSystemMeta{ GoOS: "ios",