mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-20 09:40:50 +01:00
doc: minor fix to resource resolution docs
Correct the documentation for what happens if a resource is not found.
This commit is contained in:
parent
79141582e9
commit
e5e8406e1f
@ -241,8 +241,9 @@ An object looking for a resource invokes a resource resolver with an instance of
|
|||||||
``Resource`` describing the resource it is after. The resolver goes through the
|
``Resource`` describing the resource it is after. The resolver goes through the
|
||||||
getters registered for that resource type in priority order attempting to obtain
|
getters registered for that resource type in priority order attempting to obtain
|
||||||
the resource; once the resource is obtained, it is returned to the calling
|
the resource; once the resource is obtained, it is returned to the calling
|
||||||
object. If none of the registered getters could find the resource, ``None`` is
|
object. If none of the registered getters could find the resource,
|
||||||
returned instead.
|
``NotFoundError`` is raised (or``None`` is returned instead, if invoked with
|
||||||
|
``strict=False``).
|
||||||
|
|
||||||
The most common kind of object looking for resources is a ``Workload``, and the
|
The most common kind of object looking for resources is a ``Workload``, and the
|
||||||
``Workload`` class defines
|
``Workload`` class defines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user