Skip to content

Commit

Permalink
fix: even more setup removals
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Dec 2, 2024
1 parent 6997c75 commit ca4dfb3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ A simple example using the LHCbPilot extension follows::
DIRAC_SITE="${i#*=}"
shift
;;
--lhcb-setup=*)
LHCBDIRAC_SETUP="${i#*=}"
shift
;;
--ce-name=*)
CE_NAME="${i#*=}"
shift
Expand All @@ -237,8 +233,6 @@ A simple example using the LHCbPilot extension follows::
esac
done

# Default if not given explicitly
LHCBDIRAC_SETUP=${LHCBDIRAC_SETUP:-LHCb-Production}

# JOB_ID is used by when reporting LocalJobID by DIRAC watchdog
#export JOB_ID="$VMTYPE:$VM_UUID"
Expand Down Expand Up @@ -270,7 +264,6 @@ A simple example using the LHCbPilot extension follows::

#run the dirac-pilot script
python dirac-pilot.py \
--setup $LHCBDIRAC_SETUP \
--project LHCb \
--Name "$CE_NAME" \
--name "$1" \
Expand Down
4 changes: 0 additions & 4 deletions src/DIRAC/MonitoringSystem/Service/MonitoringHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ def initializeHandler(cls, serviceInfo):
return S_ERROR(f"Data location is not writable: {repr(err)}")
gDataCache.setGraphsLocation(dataPath)

cls.diracSetup = CSGlobals.getSetup().lower()

return S_OK()

types_listUniqueKeyValues = [str]
Expand Down Expand Up @@ -277,7 +275,6 @@ def export_addRecords(self, indexname, monitoringType, data):
:param list data: data to insert
:returns: S_OK or S_ERROR
"""
indexname = f"{self.diracSetup.lower()}_{indexname}"
gLogger.debug("Bulk index:", indexname)
mapping = self.__db.getMapping(monitoringType)
gLogger.debug("Mapping:", mapping)
Expand All @@ -292,7 +289,6 @@ def export_deleteIndex(self, indexName):
:param str indexName: name of the index
"""
indexName = f"{self.diracSetup.lower()}_{indexName}"
gLogger.debug("delete index:", indexName)
return self.__db.deleteIndex(indexName)

Expand Down
1 change: 0 additions & 1 deletion tests/CI/install_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ echo -e "*** $(date -u) **** Got the DIRAC tests ****\n"

source "${DIRAC_CI_SETUP_SCRIPT}"
# shellcheck disable=SC2034
DIRACSETUP=$(< "${INSTALL_CFG_FILE}" grep "Setup = " | cut -f5 -d " ")

echo -e "*** $(date -u) **** Client INSTALLATION START ****\n"

Expand Down

0 comments on commit ca4dfb3

Please sign in to comment.