Commit d42f8478 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

jobsub: removing whitespace from beginning and end of string before checking...

jobsub: removing whitespace from beginning and end of string before checking for curly brackets in parameter
parent 7b6ca78a
......@@ -588,6 +588,8 @@ def main(argv=None):
log.debug("Next parameter: %s", parameters_csv[line][field])
log.debug("parameters_csv[line][field][0] = %s", parameters_csv[line][field][0])
# remove all whitespaces from beginning and end of string (not in the middle)
parameters_csv[line][field] = parameters_csv[line][field].strip()
if parameters_csv[line][field][0] == '{':
log.debug("Found open bracket, look for matching close bracket.")
parameter_field = parameters_csv[line][field].replace("{", "")
......
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