Skip to content

Commit

Permalink
Fix: Return fixed spec UID for AlertNotificationPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrekip committed Jan 17, 2025
1 parent ecb9cd1 commit b383c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/grafana/notificationpolicy-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (h *AlertNotificationPolicyHandler) Validate(resource grizzly.Resource) err
}

func (h *AlertNotificationPolicyHandler) GetSpecUID(resource grizzly.Resource) (string, error) {
return "", fmt.Errorf("GetSpecUID not implemented for notification policies")
return AlertNotificationPolicyKind + "-UID", nil
}

// GetByUID retrieves JSON for a resource from an endpoint, by UID
Expand Down

0 comments on commit b383c8c

Please sign in to comment.