mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-13 10:38:08 +00:00
Adding linting for contrib/deploy-onefuzz-via-azure-devops (#256)
This commit is contained in:
@ -31,9 +31,7 @@ class Onefuzz:
|
||||
|
||||
def download_artifact(self, path, asset_id, asset_name):
|
||||
headers = {"Accept": "application/octet-stream"}
|
||||
asset = requests.get(
|
||||
f"{BASE_URL}/releases/assets/{asset_id}", headers=headers
|
||||
)
|
||||
asset = requests.get(f"{BASE_URL}/releases/assets/{asset_id}", headers=headers)
|
||||
with open(os.path.join(path, asset_name), "wb") as artifact:
|
||||
artifact.write(asset.content)
|
||||
|
||||
|
Reference in New Issue
Block a user