stages/selinux: whitespace fix
Be more like PEP-8 likes it.
This commit is contained in:
parent
00f06dff16
commit
9ce8ed38cb
1 changed files with 3 additions and 0 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue