Author: croberts
Date: 2011-05-18 13:47:58 +0000 (Wed, 18 May 2011)
New Revision: 4768
Modified:
trunk/cumin/python/cumin/grid/job.py
Log:
To address BZ
https://bugzilla.redhat.com/show_bug.cgi?id=703196 we are now quoting any
strings values that are being sent to condor to update the job attributes. This is
necessary since condor will treat any unquoted strings as expressions.
Modified: trunk/cumin/python/cumin/grid/job.py
===================================================================
--- trunk/cumin/python/cumin/grid/job.py 2011-05-18 11:23:51 UTC (rev 4767)
+++ trunk/cumin/python/cumin/grid/job.py 2011-05-18 13:47:58 UTC (rev 4768)
@@ -681,7 +681,9 @@
quoted = "\"%s\"" % fval
if quoted == orig:
continue
- just_ads[unicode(field)] = fval
+ just_ads[unicode(field)] = quoted #strings must be quoted, or
condor will treat it as an expression
+ else:
+ just_ads[unicode(field)] = fval
if not errors:
id = self.frame.id.get(session)