stages/selinux: whitespace fix

Be more like PEP-8 likes it.
This commit is contained in:
Christian Kellner 2020-06-12 19:56:43 +02:00
parent 00f06dff16
commit 9ce8ed38cb

View file

@ -25,6 +25,7 @@ import os
import subprocess
import sys
SCHEMA = """
"additionalProperties": false,
"required": ["file_contexts"],
@ -36,11 +37,13 @@ SCHEMA = """
}
"""
def main(tree, options):
file_contexts = os.path.join(f"{tree}", options["file_contexts"])
subprocess.run(["setfiles", "-F", "-r", f"{tree}", f"{file_contexts}", f"{tree}"], check=True)
if __name__ == '__main__':
args = json.load(sys.stdin)
r = main(args["tree"], args["options"])