stages/ostree.passwd: delete dead code ostree function

As far as I can tell this is unused in this file.
This commit is contained in:
Dusty Mabe 2023-09-29 12:22:50 -04:00 committed by Simon de Vlieger
parent 0f477889be
commit 34d3471fdd

View file

@ -14,7 +14,6 @@ in UIDs and GIDs.
import contextlib
import os
import subprocess
import sys
import osbuild.api
@ -42,16 +41,6 @@ SUBUID_PATH = "etc/subuid"
SUBGID_PATH = "etc/subgid"
def ostree(*args, _input=None, **kwargs):
args = list(args) + [f'--{k}={v}' for k, v in kwargs.items()]
print("ostree " + " ".join(args), file=sys.stderr)
subprocess.run(["ostree"] + args,
encoding="utf8",
stdout=sys.stderr,
input=_input,
check=True)
def parse_input(inputs):
commits = inputs["commits"]
source_root = commits["path"]