macos_security
macos_security copied to clipboard
os_software_update_deferral gives fails finding if 'enforcedSoftwareUpdateDelay' key is not set
Summary
The os_software_update_deferral check will fail if there is no setting for "enforcedSoftwareUpdateDelay".
Steps to reproduce
- 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.
The change seems to have worked.