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

reset deferral counter before finalising update #303

Closed cornevandyk closed 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.

vmwclabot commented 7 months ago

@cornevandyk, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

vmwclabot commented 7 months ago

@cornevandyk, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

vmwclabot commented 7 months ago

@cornevandyk, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.