Skip to content

Commit

Permalink
Check for ResourceType (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mir Shahriar authored and tamalsaha committed Aug 25, 2017
1 parent 866cb10 commit 4cae273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/operator/acknowledge.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ func Acknowledge(client *icinga.Client, w http.ResponseWriter, r *http.Request)
switch alertType {
case tapi.ResourceTypePodAlert:
host.Type = icinga.TypePod
case tapi.ResourceNameNodeAlert:
case tapi.ResourceTypeNodeAlert:
host.Type = icinga.TypeNode
case tapi.ResourceNameClusterAlert:
case tapi.ResourceTypeClusterAlert:
host.Type = icinga.TypeCluster
}

Expand Down

0 comments on commit 4cae273

Please sign in to comment.