mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-13 10:38:08 +00:00
Address typing issues hidden by memoization.caching (#322)
This commit is contained in:
@ -47,6 +47,8 @@ class Task(BASE_TASK, ORMMixin):
|
||||
) -> Union["Task", Error]:
|
||||
if config.vm:
|
||||
os = get_os(config.vm.region, config.vm.image)
|
||||
if isinstance(os, Error):
|
||||
return os
|
||||
elif config.pool:
|
||||
pool = Pool.get_by_name(config.pool.pool_name)
|
||||
if isinstance(pool, Error):
|
||||
|
Reference in New Issue
Block a user