mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-01 19:02:31 +01:00
revent: fix resource resolution when dependency location does not exist.
This commit is contained in:
@@ -320,9 +320,10 @@ class RemoteFilerGetter(ResourceGetter):
|
|||||||
for candidate in os.listdir(alternate_location):
|
for candidate in os.listdir(alternate_location):
|
||||||
if candidate.lower() == filename.lower():
|
if candidate.lower() == filename.lower():
|
||||||
return os.path.join(alternate_location, candidate)
|
return os.path.join(alternate_location, candidate)
|
||||||
for candidate in os.listdir(location):
|
if os.path.isdir(location):
|
||||||
if candidate.lower() == filename.lower():
|
for candidate in os.listdir(location):
|
||||||
return os.path.join(location, candidate)
|
if candidate.lower() == filename.lower():
|
||||||
|
return os.path.join(location, candidate)
|
||||||
else:
|
else:
|
||||||
raise ValueError('Unexpected resource type: {}'.format(resource.name))
|
raise ValueError('Unexpected resource type: {}'.format(resource.name))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user