From 9ce8ed38cb4a819e82fd0bee6387c95bfc3bad76 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 12 Jun 2020 19:56:43 +0200 Subject: [PATCH] stages/selinux: whitespace fix Be more like PEP-8 likes it. --- stages/org.osbuild.selinux | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stages/org.osbuild.selinux b/stages/org.osbuild.selinux index a7f1fc1c..5ec319f6 100755 --- a/stages/org.osbuild.selinux +++ b/stages/org.osbuild.selinux @@ -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"])