mirror of
https://github.com/fleetdm/fleet
synced 2026-05-14 20:48:35 +00:00
Addresses
https://github.com/fleetdm/fleet/issues/26443#issuecomment-2749360869
after https://github.com/fleetdm/fleet/pull/27176 was merged. Reading
XML as a string in this way feels wrong, but I don't want to avoid a
refactor, so I'm checking for a "comment" string in this PR.
I tested by building fleetctl locally and running:
```sh
$ make fleetctl; ./build/fleetctl gitops -f it-and-security/teams/test.yml --dry-run
...
Client Version: tf-mod-addon-monitoring-v1.5.1-1091-g8eb9111c6-dirty
Server Version: 0.0.0-SNAPSHOT-85f4f65
[+] applying MDM profiles for team TEST
Error: applying custom settings for team "TEST": POST /api/latest/fleet/mdm/profiles/batch received status 422 Validation Failed: disable-onedrive is not a valid macOS or Windows configuration profile. macOS profiles must be valid .mobileconfig or .json files. Windows configuration profiles can only have <Replace> or <Add> top level elements.
```
I'm not sure if the error above
([code](
|
||
|---|---|---|
| .. | ||
| android | ||
| apple | ||
| assets | ||
| crypto | ||
| cryptoutil | ||
| internal/commonmdm | ||
| lifecycle | ||
| linux | ||
| maintainedapps | ||
| microsoft | ||
| nanodep | ||
| nanomdm | ||
| scep | ||
| testing_utils | ||
| mdm.go | ||
| mdm_test.go | ||