mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 04:18:58 +00:00
resource: remote resource resolution fixes
- "remote" getter priority reduced to be below "environment" so that resouces placed into "~/.workload_automation/dependencies" by the user take priority over those pulled from remote locations. - "filer" getter now uses a cache location for the resource rather than downloading to the local resource location.
This commit is contained in:
parent
96c6f010f8
commit
6e7087ee88
@ -38,8 +38,8 @@ class GetterPriority(object):
|
||||
"""
|
||||
cached = 20
|
||||
preferred = 10
|
||||
remote = 5
|
||||
environment = 0
|
||||
remote = -4
|
||||
external_package = -5
|
||||
package = -10
|
||||
|
||||
|
@ -227,7 +227,8 @@ class DependencyFileGetter(ResourceGetter):
|
||||
def get(self, resource, **kwargs):
|
||||
force = kwargs.get('force')
|
||||
remote_path = os.path.join(self.mount_point, self.relative_path, resource.path)
|
||||
local_path = os.path.join(resource.owner.dependencies_directory, os.path.basename(resource.path))
|
||||
local_path = _f(os.path.join(settings.dependencies_directory, '__remote',
|
||||
resource.owner.name, os.path.basename(resource.path)))
|
||||
|
||||
if not os.path.exists(local_path) or force:
|
||||
if not os.path.exists(remote_path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user