macos_security icon indicating copy to clipboard operation
macos_security copied to clipboard

os_software_update_deferral gives fails finding if 'enforcedSoftwareUpdateDelay' key is not set

Open jmahlman opened this issue 3 years ago • 1 comments

Summary

The os_software_update_deferral check will fail if there is no setting for "enforcedSoftwareUpdateDelay".

Steps to reproduce

  1. Run check on device without the 'enforcedSoftwareUpdateDelay' key set.

Operating System version

12.5

What is the current bug behavior?

If no key is preset, the check will be marked as failed.

What is the expected correct behavior?

If the key is not set I believe this should pass as this means there is essentially no delay.

Possible fix

May want to mark as pass if the key is not found.

jmahlman avatar Jul 25 '22 14:07 jmahlman

The change seems to have worked.

jmahlman avatar Jul 25 '22 16:07 jmahlman