generic_platform: fix typo
This commit is contained in:
parent
78f8ec1a53
commit
fef9d0fc78
|
@ -32,7 +32,7 @@ def _lookup(description, name, number):
|
||||||
for resource in description:
|
for resource in description:
|
||||||
if resource[0] == name and (number is None or resource[1] == number):
|
if resource[0] == name and (number is None or resource[1] == number):
|
||||||
return resource
|
return resource
|
||||||
return ConstraintError("Resource not found")
|
raise ConstraintError("Resource not found")
|
||||||
|
|
||||||
def _resource_type(resource):
|
def _resource_type(resource):
|
||||||
t = None
|
t = None
|
||||||
|
|
Loading…
Reference in New Issue