mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 03:48:09 +00:00
don't overload list
builtin (#1120)
This commit is contained in:
@ -47,7 +47,7 @@ def get(req: func.HttpRequest) -> func.HttpResponse:
|
|||||||
read=True,
|
read=True,
|
||||||
write=True,
|
write=True,
|
||||||
delete=True,
|
delete=True,
|
||||||
list=True,
|
list_=True,
|
||||||
),
|
),
|
||||||
metadata=metadata,
|
metadata=metadata,
|
||||||
)
|
)
|
||||||
|
@ -140,7 +140,7 @@ def create_container(
|
|||||||
read=True,
|
read=True,
|
||||||
write=True,
|
write=True,
|
||||||
delete=True,
|
delete=True,
|
||||||
list=True,
|
list_=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ def get_container_sas_url_service(
|
|||||||
read: bool = False,
|
read: bool = False,
|
||||||
write: bool = False,
|
write: bool = False,
|
||||||
delete: bool = False,
|
delete: bool = False,
|
||||||
list: bool = False,
|
list_: bool = False,
|
||||||
delete_previous_version: bool = False,
|
delete_previous_version: bool = False,
|
||||||
tag: bool = False,
|
tag: bool = False,
|
||||||
) -> str:
|
) -> str:
|
||||||
@ -180,7 +180,7 @@ def get_container_sas_url_service(
|
|||||||
read=read,
|
read=read,
|
||||||
write=write,
|
write=write,
|
||||||
delete=delete,
|
delete=delete,
|
||||||
list=list,
|
list=list_,
|
||||||
delete_previous_version=delete_previous_version,
|
delete_previous_version=delete_previous_version,
|
||||||
tag=tag,
|
tag=tag,
|
||||||
),
|
),
|
||||||
@ -202,7 +202,7 @@ def get_container_sas_url(
|
|||||||
read: bool = False,
|
read: bool = False,
|
||||||
write: bool = False,
|
write: bool = False,
|
||||||
delete: bool = False,
|
delete: bool = False,
|
||||||
list: bool = False,
|
list_: bool = False,
|
||||||
) -> str:
|
) -> str:
|
||||||
client = find_container(container, storage_type)
|
client = find_container(container, storage_type)
|
||||||
if not client:
|
if not client:
|
||||||
@ -213,7 +213,7 @@ def get_container_sas_url(
|
|||||||
read=read,
|
read=read,
|
||||||
write=write,
|
write=write,
|
||||||
delete=delete,
|
delete=delete,
|
||||||
list=list,
|
list_=list_,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -140,13 +140,13 @@ def update_managed_scripts() -> None:
|
|||||||
Container("instance-specific-setup"),
|
Container("instance-specific-setup"),
|
||||||
StorageType.config,
|
StorageType.config,
|
||||||
read=True,
|
read=True,
|
||||||
list=True,
|
list_=True,
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
"azcopy sync '%s' tools"
|
"azcopy sync '%s' tools"
|
||||||
% (
|
% (
|
||||||
get_container_sas_url(
|
get_container_sas_url(
|
||||||
Container("tools"), StorageType.config, read=True, list=True
|
Container("tools"), StorageType.config, read=True, list_=True
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
@ -291,7 +291,7 @@ def repro_extensions(
|
|||||||
"azcopy sync '%s' ./setup"
|
"azcopy sync '%s' ./setup"
|
||||||
% (
|
% (
|
||||||
get_container_sas_url(
|
get_container_sas_url(
|
||||||
setup_container, StorageType.corpus, read=True, list=True
|
setup_container, StorageType.corpus, read=True, list_=True
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -262,7 +262,7 @@ def build_task_config(
|
|||||||
read=ContainerPermission.Read in container_def.permissions,
|
read=ContainerPermission.Read in container_def.permissions,
|
||||||
write=ContainerPermission.Write in container_def.permissions,
|
write=ContainerPermission.Write in container_def.permissions,
|
||||||
delete=ContainerPermission.Delete in container_def.permissions,
|
delete=ContainerPermission.Delete in container_def.permissions,
|
||||||
list=ContainerPermission.List in container_def.permissions,
|
list_=ContainerPermission.List in container_def.permissions,
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -199,7 +199,7 @@ def build_work_set(tasks: List[Task]) -> Optional[Tuple[BucketConfig, WorkSet]]:
|
|||||||
|
|
||||||
if bucket_config:
|
if bucket_config:
|
||||||
setup_url = get_container_sas_url(
|
setup_url = get_container_sas_url(
|
||||||
bucket_config.setup_container, StorageType.corpus, read=True, list=True
|
bucket_config.setup_container, StorageType.corpus, read=True, list_=True
|
||||||
)
|
)
|
||||||
|
|
||||||
work_set = WorkSet(
|
work_set = WorkSet(
|
||||||
|
Reference in New Issue
Block a user