diff --git a/did_finder_rucio/src/rucio_did_finder/rucio_adapter.py b/did_finder_rucio/src/rucio_did_finder/rucio_adapter.py index 7241fce7..d6722bb0 100644 --- a/did_finder_rucio/src/rucio_did_finder/rucio_adapter.py +++ b/did_finder_rucio/src/rucio_did_finder/rucio_adapter.py @@ -46,6 +46,9 @@ def __init__(self, did_client, replica_client, report_logical_files=False): def client_location(self): client_location = {} + # setting the site actually seems to work + if 'SITE_NAME' in os.environ: + client_location['site'] = os.environ['SITE_NAME'] latitude = os.environ.get('RUCIO_LATITUDE') longitude = os.environ.get('RUCIO_LONGITUDE') if latitude and longitude: diff --git a/helm/servicex/templates/did-finder-rucio/deployment.yaml b/helm/servicex/templates/did-finder-rucio/deployment.yaml index 0418fe40..0f6c8b0c 100644 --- a/helm/servicex/templates/did-finder-rucio/deployment.yaml +++ b/helm/servicex/templates/did-finder-rucio/deployment.yaml @@ -42,6 +42,10 @@ spec: value: "{{ .Values.didFinder.rucio.servicex_latitude }}" - name: RUCIO_LONGITUDE value: "{{ .Values.didFinder.rucio.servicex_longitude }}" + {{- if .Values.didFinder.rucio.site }} + - name: SITE_NAME + value: "{{ .Values.didFinder.rucio.site }}" + {{- end }} - name: INSTANCE_NAME value: {{ .Release.Name }} volumeMounts: