mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-08-11 23:41:45 +01:00
refactor[scripts] generate_scap updated for ios
fixed exemption due to no result found for iOS
This commit is contained in:
@@ -280,10 +280,10 @@ def generate_scap(all_rules, all_baselines, args):
|
||||
|
||||
rule_yaml['fix'] = rule_yaml['fix'].replace("$ODV",odv_value)
|
||||
|
||||
|
||||
for result_value in rule_yaml['result']:
|
||||
if "$ODV" == rule_yaml['result'][result_value]:
|
||||
rule_yaml['result'][result_value] = rule_yaml['result'][result_value].replace("$ODV",odv_value)
|
||||
if "result" in rule_yaml:
|
||||
for result_value in rule_yaml['result']:
|
||||
if "$ODV" == rule_yaml['result'][result_value]:
|
||||
rule_yaml['result'][result_value] = rule_yaml['result'][result_value].replace("$ODV",odv_value)
|
||||
|
||||
|
||||
if rule_yaml['mobileconfig_info']:
|
||||
|
||||
Reference in New Issue
Block a user