-
Notifications
You must be signed in to change notification settings - Fork 755
Open
0 / 10 of 1 issue completed
Copy link
Labels
#g-softwareSoftware product groupSoftware product group
Description
Problem
#37670 changed docker/darwin to docker-desktop/darwin and broke our CI.
The error MaintainedApp was not found in the datastore is not useful, as it does not identify which app was not found in the datastore, leaving the Fleet admin to try and find what changed recently.
[+] syncing XX policies
[+] syncing XX queries
[+] applying MDM profiles for team XX
[+] applying XX software packages for team XX
Error: applying software installers for team "XX": Resource Not Found: MaintainedApp was not found in the datastore
Potential solutions
Update
fleet/server/datastore/mysql/common_mysql/errors.go
Lines 26 to 37 in cb6260e
| func (e *NotFoundError) Error() string { | |
| if e.ID != 0 { | |
| return fmt.Sprintf("%s %d was not found in the datastore", e.ResourceType, e.ID) | |
| } | |
| if e.Name != "" { | |
| return fmt.Sprintf("%s %s was not found in the datastore", e.ResourceType, e.Name) | |
| } | |
| if e.Message != "" { | |
| return fmt.Sprintf("%s %s was not found in the datastore", e.ResourceType, e.Message) | |
| } | |
| return fmt.Sprintf("%s was not found in the datastore", e.ResourceType) | |
| } |
MaintainedApp.Sub-issues
Metadata
Metadata
Assignees
Labels
#g-softwareSoftware product groupSoftware product group