Commit 2ff9acc
#2680 Handle missing ScheduledScan gracefully by auto-discovery
Previously, the Container Auto-Discovery controller logged an error when trying
to fetch a ScheduledScan that was already deleted. This change introduces a check
for `IsNotFound` errors, treating them as expected behavior instead of logging
them as errors.
Now, if a ScheduledScan is not found, an informational log message is recorded
instead of an error. This prevents unnecessary noise in logs.
Signed-off-by: Boris Shek <boris.shek@iteratec.com>1 parent a2ebbae commit 2ff9acc
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
431 | 435 | | |
432 | 436 | | |
433 | 437 | | |
| |||
0 commit comments