From 56c3a33f3318f06a7361ad17f8427ff531bf25ae Mon Sep 17 00:00:00 2001 From: Anders Roxell Date: Wed, 15 May 2024 11:38:29 +0200 Subject: [PATCH] ci/backend/tuxsuite: make function update_metadata_from_file generic Drop the 'test_' prefix to make the function generic. Signed-off-by: Anders Roxell --- squad/ci/backend/tuxsuite.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/squad/ci/backend/tuxsuite.py b/squad/ci/backend/tuxsuite.py index 5ecf0739..130c480f 100644 --- a/squad/ci/backend/tuxsuite.py +++ b/squad/ci/backend/tuxsuite.py @@ -300,10 +300,10 @@ def update_metadata_from_file(self, results, metadata): if "download_url" in results: download_url = results["download_url"] try: - test_metadata_response = self.fetch_url(download_url + '/' + 'metadata.json') + metadata_response = self.fetch_url(download_url + '/' + 'metadata.json') # If fetching the metadata file did not error, decode it as json - if test_metadata_response.ok: - metadata.update(test_metadata_response.json()) + if metadata_response.ok: + metadata.update(metadata_response.json()) except TemporaryFetchIssue: pass