Skip to content

Commit

Permalink
resource take one s
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaingaudan committed Jan 6, 2025
1 parent d62ae9d commit 67ca802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/aproc/proc/drivers/driver_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def driver_names(process: str) -> list[str]:
return list(map(lambda p: p.name, DriverManager.drivers[process]))

@staticmethod
def solve(process: str, ressource, include_drivers: list[str] = [], exclude_drivers: list[str] = []) -> AbstractDriver:
def solve(process: str, resource, include_drivers: list[str] = [], exclude_drivers: list[str] = []) -> AbstractDriver:
DriverManager.__check_drivers(process)
drivers = DriverManager.drivers.get(process, [])
if include_drivers and len(include_drivers) > 0:
Expand All @@ -46,7 +46,7 @@ def solve(process: str, ressource, include_drivers: list[str] = [], exclude_driv
try:
LOGGER.debug("Test driver {}".format(driver_class.name))
driver: AbstractDriver = driver_class()
if driver.supports(ressource) is True:
if driver.supports(resource) is True:
return driver
except Exception as e:
LOGGER.exception(e)
Expand Down

0 comments on commit 67ca802

Please sign in to comment.