From 57b88664d2da8c6685f3d4cf0555e4cc0880bf92 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 16 Aug 2023 12:11:08 +0200 Subject: [PATCH] Rename vars --- .../ddadevops/infrastructure/infrastructure.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/python/ddadevops/infrastructure/infrastructure.py b/src/main/python/ddadevops/infrastructure/infrastructure.py index ed80da0..fda7c90 100644 --- a/src/main/python/ddadevops/infrastructure/infrastructure.py +++ b/src/main/python/ddadevops/infrastructure/infrastructure.py @@ -248,15 +248,15 @@ class ArtifactDeploymentApi: ) def calculate_sha256(self, path: Path): - sum = f"{path}.sha256" - self.execution_api( - f"sha256sum {path} > {sum}", + shasum = f"{path}.sha256" + self.execution_api.execute( + f"sha256sum {path} > {shasum}", ) - return sum + return shasum def calculate_sha512(self, path: Path): - sum = f"{path}.sha512" - self.execution_api( - f"sha512sum {path} > {sum}", + shasum = f"{path}.sha512" + self.execution_api.execute( + f"sha512sum {path} > {shasum}", ) - return sum + return shasum