Commit 947bfc3a authored by James Clark's avatar James Clark
Browse files

add-files now uses file list, not shell-expanded file list

parent 0eed6910
......@@ -317,14 +317,20 @@ def add_files(aparser):
rse_info = rsemgr.get_rse_info(aparser.rse)
LOGGER.debug('connection took %fs', (time.time() - then))
LOGGER.info("Rset contains: %s", ','.join(aparser.files))
with open(aparser.files[0]) as afiles:
filelist = afiles.read().splitlines()
if len(filelist)<11:
LOGGER.info("Rset contains: %s", ','.join(filelist))
else:
LOGGER.info("1st 10 files of Rset: %s", ','.join(filelist[:10]))
# Get registration set instructions
rsets = get_rsets(aparser.reg_yaml)
rset = rsets[aparser.rset]
# Add the file list to the rset
rset['filelist'] = list(aparser.files)
rset['filelist'] = list(filelist)
try:
# Add a file-info file:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment