vmware-samples / euc-samples

Workspace ONE UEM (previously AirWatch) Samples and Guidance
https://code.vmware.com/web/workspace-one
BSD 3-Clause "New" or "Revised" License
271 stars 148 forks source link

add reset for deferral counter #304

Open cornevandyk opened 7 months ago

cornevandyk commented 7 months ago

The current script doesn't reset the deferral counter. This causes the behaviour that, if ever a new desiredOS is set in the XML file, the update will be forced immediately, since the deferral counter is already at the limit.

This PR resets the deferral counter to 0 as late as possible before finalising the update, so that any future updates will also allow deferrals.