Use Storage Account types, rather than account_id (#320)

We need to move to supporting data sharding.

One of the steps towards that is stop passing around `account_id`, rather we need to specify the type of storage we need.
This commit is contained in:
bmc-msft
2020-11-18 09:06:14 -05:00
committed by GitHub
parent 52eca33237
commit e47e89609a
18 changed files with 205 additions and 139 deletions

View File

@ -10,7 +10,7 @@ from typing import Optional, Union
from onefuzztypes.models import Report
from pydantic import ValidationError
from .azure.containers import get_blob
from .azure.containers import StorageType, get_blob
def parse_report(
@ -50,7 +50,7 @@ def get_report(container: str, filename: str) -> Optional[Report]:
logging.error("get_report invalid extension: %s", metadata)
return None
blob = get_blob(container, filename)
blob = get_blob(container, filename, StorageType.corpus)
if blob is None:
logging.error("get_report invalid blob: %s", metadata)
return None