mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Windows Var Replacement: use updated profile contents instead of incoming (#34681)
This fixes a bug, but also fixes the flaky test runs seen in [Slack](https://fleetdm.slack.com/archives/C019WG4GH0A/p1761192670589249).
This commit is contained in:
parent
92bf89f235
commit
5105e1914b
1 changed files with 1 additions and 1 deletions
|
|
@ -353,7 +353,7 @@ func preprocessWindowsProfileContents(ctx context.Context, logger kitlog.Logger,
|
|||
if fleetVar == string(fleet.FleetVarHostUUID) {
|
||||
result = profiles.ReplaceFleetVariableInXML(fleet.FleetVarHostUUIDRegexp, result, hostUUID)
|
||||
} else if fleetVar == string(fleet.FleetVarHostEndUserEmailIDP) {
|
||||
replacedContents, replacedVariable, err := profiles.ReplaceHostEndUserEmailIDPVariable(ctx, ds, profileContents, hostUUID)
|
||||
replacedContents, replacedVariable, err := profiles.ReplaceHostEndUserEmailIDPVariable(ctx, ds, result, hostUUID)
|
||||
if err != nil {
|
||||
return profileContents, ctxerr.Wrap(ctx, err, "replacing host end user email IDP variable")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue