mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
"check" script in system_settings_screensaver_ask_for_password_delay_enforce.yaml throws a syntax error #72
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maniqui on GitHub.
e22bb0bc02/rules/system_settings/system_settings_screensaver_ask_for_password_delay_enforce.yaml (L7-L18)This "check" script throws the following error
152:174: syntax error: Error on line 3: SyntaxError: Unexpected token ')' (-2700)The version below (taken from here), which looks exactly the same, does not throw the error:
@maniqui commented on GitHub:
@brodjieski you are right, my bad 🤦 Thank you!
@brodjieski commented on GitHub:
Hello!
If you copy/paste the check code as-is from the .yaml file for this rule, it will still have the
$ODVplaceholder that gets filled in during the generation processes. This value needs to be an integer for the check to work. Notice that in the example you provided that worked contains the value of 5 where$ODVis in the code. Leaving the$ODVplaceholder in will generate the syntax error you are seeing.