removeprefix
All checks were successful
/ alpine (push) Successful in 42s
/ debian (push) Successful in 1m15s
/ ubuntu (push) Successful in 2m0s
/ arch (push) Successful in 1m38s
/ opensuse (push) Successful in 1m46s
/ fedora (push) Successful in 4m39s
/ alma (push) Successful in 3m26s
/ rocky (push) Successful in 15m23s

This commit is contained in:
Marc Beninca 2024-10-21 15:19:39 +02:00
parent e6d631994e
commit 776421884b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -28,7 +28,7 @@ def parse_inputs() -> dict[str, object]:
d = {}
for variable, value in sorted(projects.environment.items()):
if variable.startswith(PREFIX):
d[variable] = literal_eval(value)
d[variable.removeprefix(PREFIX)] = literal_eval(value)
return d