From 7ff23357a84bdfbeb8e99b0abc32692eaa574b74 Mon Sep 17 00:00:00 2001 From: Valerie Becker Date: Fri, 22 Nov 2024 09:53:01 -0700 Subject: [PATCH] Use no proxy for consdb access --- python/lsst/ts/logging_and_reporting/consolidated_database.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/lsst/ts/logging_and_reporting/consolidated_database.py b/python/lsst/ts/logging_and_reporting/consolidated_database.py index d470b8b..06cf4db 100644 --- a/python/lsst/ts/logging_and_reporting/consolidated_database.py +++ b/python/lsst/ts/logging_and_reporting/consolidated_database.py @@ -20,6 +20,8 @@ # along with this program. If not, see . +import os + import matplotlib.pyplot as plt try: @@ -40,6 +42,8 @@ def __init__(self, url, day_obs): self.day_obs = day_obs self.day_obs_int = int(day_obs.replace("-", "")) self.client = ConsDbClient(url) if have_consdb else None + os.environ["no_proxy"] += ",.consdb" + # Something about token from consdb usage page needs to happen def query_visit(self, instrument: str, type: str = "visit1"): """Query visit1 and visit1_quicklook tables and join the data on