Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
ci/backend/tuxsuite: make function update_metadata_from_file generic
Browse files Browse the repository at this point in the history
Drop the 'test_' prefix to make the function generic.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
  • Loading branch information
roxell committed May 15, 2024
1 parent 1a7dbbb commit 56c3a33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions squad/ci/backend/tuxsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 56c3a33

Please sign in to comment.