Skip to content

Commit b2f4779

Browse files
committed
Make autotailor use correct XML namespaces
Fixes #2309
1 parent 657a4ff commit b2f4779

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/autotailor

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import json
2929

3030

3131
NS = "http://checklists.nist.gov/xccdf/1.2"
32+
NS_PREFIX = "xccdf-1.2"
3233
DEFAULT_PROFILE_SUFFIX = "_customized"
3334
DEFAULT_REVERSE_DNS = "org.ssgproject.content"
3435
ROLES = ["full", "unscored", "unchecked"]
@@ -440,6 +441,8 @@ if __name__ == "__main__":
440441
parser = get_parser()
441442
args = parser.parse_args()
442443

444+
ET.register_namespace(NS_PREFIX, NS)
445+
443446
if not args.profile and not args.json_tailoring:
444447
parser.error("one of the following arguments has to be provided: "
445448
"BASE_PROFILE_ID or --json-tailoring JSON_TAILORING_FILENAME")

0 commit comments

Comments
 (0)