From 150e5ea2b18a093ba6d4fb94dbb49b4154008570 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sun, 21 Jul 2024 07:56:14 +0000 Subject: [PATCH] contrib: fix invalid f-string (#90) F-String was invalid on NixOS due to variable names overlapping with the string double quotes. Signed-off-by: David Bauer (cherry picked from commit 6d94c7c8dc1be1a49289a64d6ff3b037c01b67e8) Signed-off-by: Tom Herbers --- contrib/load-attestation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 contrib/load-attestation.py diff --git a/contrib/load-attestation.py b/contrib/load-attestation.py old mode 100644 new mode 100755 index de0e938..afc7565 --- a/contrib/load-attestation.py +++ b/contrib/load-attestation.py @@ -67,7 +67,8 @@ def print_attestation(data): build_commit = build_definition["resolvedDependencies"][0]["digest"]["gitCommit"] print(f" Commit: {build_commit}") - print(f" Run: {run_details["metadata"]["invocationId"]}") + invocation_id = run_details["metadata"]["invocationId"] + print(f" Run: {invocation_id}") if __name__ == "__main__":