Skip to content
Open
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
2 changes: 2 additions & 0 deletions api/cockpit/v1/sweepers/sweepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func SweepGrafanaUser(scwClient *scw.Client) error {
continue
}

//nolint:staticcheck // ListGrafanaUsers is deprecated but still required for sweeper functionality
listGrafanaUsers, err := cockpitAPI.ListGrafanaUsers(&cockpit.GlobalAPIListGrafanaUsersRequest{
ProjectID: project.ID,
}, scw.WithAllPages())
Expand All @@ -65,6 +66,7 @@ func SweepGrafanaUser(scwClient *scw.Client) error {
}

for _, grafanaUser := range listGrafanaUsers.GrafanaUsers {
//nolint:staticcheck // DeleteGrafanaUser is deprecated but still required for sweeper functionality
err = cockpitAPI.DeleteGrafanaUser(&cockpit.GlobalAPIDeleteGrafanaUserRequest{
ProjectID: project.ID,
GrafanaUserID: grafanaUser.ID,
Expand Down
Loading