Skip to content

Commit

Permalink
sweep: DIRACGrid#7561 Replace ROOT_All with ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Apr 12, 2024
1 parent d553d07 commit 1ac5b63
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/DIRAC/Interfaces/API/Dirac.py
Expand Up @@ -219,7 +219,7 @@ def getInputDataCatalog(self, lfns, siteName="", fileName="pool_xml_catalog.xml"
Example usage:
>>> print(getInputDataCatalog('/lhcb/a/b/c/00001680_00000490_5.dst',None,'myCat.xml'))
{'Successful': {'<LFN>': {'pfntype': 'ROOT_All', 'protocol': 'SRM2',
{'Successful': {'<LFN>': {'pfntype': 'ROOT', 'protocol': 'SRM2',
'pfn': '<PFN>', 'turl': '<TURL>', 'guid': '3E3E097D-0AC0-DB11-9C0A-00188B770645',
'se': 'CERN-disk'}}, 'Failed': [], 'OK': True, 'Value': ''}
Expand Down
2 changes: 1 addition & 1 deletion src/DIRAC/Resources/Catalog/PoolXMLCatalog.py
Expand Up @@ -85,7 +85,7 @@ def addPfn(self, pfn, pfntype=None, se=None):
if pfntype:
self.pfns.append((pfn, pfntype, sename))
else:
self.pfns.append((pfn, "ROOT_All", sename))
self.pfns.append((pfn, "ROOT", sename))

def toXML(self, metadata):
"""Output the contents as an XML string"""
Expand Down
2 changes: 1 addition & 1 deletion src/DIRAC/Resources/Catalog/PoolXMLFile.py
Expand Up @@ -84,7 +84,7 @@ def getType(fileNames, directory=""):
for fname in fileNames:
typeFile = str(catalog.getTypeByPfn(fname))
if not typeFile:
typeFile = "ROOT_All"
typeFile = "ROOT"
generated.append(fname)

pfnTypes[fname] = typeFile
Expand Down
Expand Up @@ -64,7 +64,7 @@ def execute(self):

return resolvedInputData

def _createCatalog(self, resolvedInputData, catalogName="pool_xml_catalog.xml", pfnType="ROOT_All"):
def _createCatalog(self, resolvedInputData, catalogName="pool_xml_catalog.xml", pfnType="ROOT"):
"""By default uses PoolXMLSlice, VO extensions can modify at will"""

resolvedData = resolvedInputData["Successful"]
Expand Down

0 comments on commit 1ac5b63

Please sign in to comment.