We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a7f0429 + 4cbefc0 commit 1c5cca3Copy full SHA for 1c5cca3
1 file changed
bin/stashcp
@@ -379,9 +379,10 @@ def get_ips(name):
379
return ipv4s + ipv6s
380
381
def get_best_stashcache():
382
+ prefix = os.environ.get("OSG_LOCATION", "")
383
cache_files = [os.path.join(os.path.dirname(os.path.realpath(__file__)), "caches.json"),
- "/etc/stashcache/caches.json",
384
- "/usr/share/stashcache/caches.json"]
+ os.path.join(prefix, "/etc/stashcache/caches.json"),
385
+ os.path.join(prefix, "/usr/share/stashcache/caches.json")]
386
for cache_file in cache_files:
387
if os.path.isfile(cache_file):
388
with open(cache_file, 'r') as f:
0 commit comments