Adding linting for contrib/deploy-onefuzz-via-azure-devops (#256)

This commit is contained in:
Anshuman Goel
2020-11-03 08:39:33 -08:00
committed by GitHub
parent ffeee8e57e
commit 0e04309e33
6 changed files with 234 additions and 9 deletions

View File

@ -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)