Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit aac5ec1

Browse files
authored
Merge pull request #120 from matusmarhefka/xccdf-id-arg-default
Default xccdf_id arg to None for generate_fix_for_result function
2 parents 54c434b + 7dbf83c commit aac5ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openscap_daemon/oscap_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def _get_result_id(results_path):
474474
return test_result.attrib["id"]
475475

476476

477-
def generate_fix_for_result(config, results_path, fix_type, xccdf_id):
477+
def generate_fix_for_result(config, results_path, fix_type, xccdf_id=None):
478478
if not os.path.exists(results_path):
479479
raise RuntimeError("Can't generate fix for scan result. Expected "
480480
"results XML at '%s' but the file doesn't exist."

0 commit comments

Comments
 (0)