Skip to content

Commit 492fae9

Browse files
committed
Merge branch 'master' of https://github.com/opensciencegrid/StashCache into add-http
2 parents 3853764 + 1d3dd91 commit 492fae9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/stashcp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ def get_best_stashcache():
564564

565565
if order_str == '':
566566
# Unable to find a geo_ip server to use, return random choice from caches!
567-
minsite = random.choice(caches_list)
567+
minsite = random.choice(caches_list)['name']
568568
random.shuffle(caches_list)
569569
nearest_cache_list = [cache['name'] for cache in caches_list]
570570
logging.error("Unable to use Geoip to find closest cache! Returning random cache %s", minsite)

0 commit comments

Comments
 (0)