Skip to content

Commit e8c5bad

Browse files
committed
Fix PEP8 problems
1 parent 33cb31f commit e8c5bad

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

build-scripts/generate_profile_remediations.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222

2323
DEFAULT_SELECTOR = "__DEFAULT"
2424
HASH_ROW = "#" * 79
25-
LANGUAGE_TO_SYSTEM = {"ansible": ansible_system, "bash": bash_system, "hummingbird": hummingbird_system}
25+
LANGUAGE_TO_SYSTEM = {
26+
"ansible": ansible_system,
27+
"bash": bash_system,
28+
"hummingbird": hummingbird_system}
2629
LANGUAGE_TO_TARGET = {"ansible": "playbook", "bash": "script", "hummingbird": "script"}
2730
LANGUAGE_TO_EXTENSION = {"ansible": "yml", "bash": "sh", "hummingbird": "sh"}
2831
ANSIBLE_VAR_PATTERN = re.compile(
@@ -309,7 +312,9 @@ def create_header(self, profile):
309312
how_to_apply = "# $ sudo ./remediation-script.sh\n"
310313
elif self.language == "hummingbird":
311314
shebang_with_newline = "#!/usr/bin/env bash\n"
312-
remediation_type = "Bash Remediation Script for building Project Hummingbird container images"
315+
remediation_type = (
316+
"Bash Remediation Script for building Project Hummingbird "
317+
"container images")
313318
how_to_apply = "# RUN remediation-script.sh ${NEWROOT}\n"
314319
profile_title = profile.find("./{%s}title" % XCCDF12_NS).text
315320
description = profile.find("./{%s}description" % XCCDF12_NS).text
@@ -381,7 +386,6 @@ def generate_bash_rule_remediation(self, rule_id, status, refinements):
381386
output.append(end_msg)
382387
return "".join(output)
383388

384-
385389
def generate_hummingbird_rule_remediation(self, rule_id, refinements):
386390
fix_el = self.remediations[rule_id]
387391
if fix_el is None:
@@ -405,7 +409,6 @@ def generate_hummingbird_rule_remediation(self, rule_id, refinements):
405409
output.append(end_msg)
406410
return "".join(output)
407411

408-
409412
def generate_ansible_rule_remediation(self, fix_el, refinements):
410413
rule_vars = {}
411414
tasks = []

0 commit comments

Comments
 (0)