Commit 3bbf4fe
authored
Delete gracefully if user no longer exist in grafana (#991)
When applying a terraform plan that was created with `-refresh=false` the
detection of resources that no longer exist in grafana does not work,
as the resources are not read at all.
Thus on apply, a deletion of a user that no longer exists in grafana fails with:
```
Error: status: 404, body: {"message":"user not found"}
```
This change modifies `DeleteUser` so that it catches this case and does
not return an error.1 parent 1d42628 commit 3bbf4fe
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
148 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| |||
0 commit comments