Rework version command to work with job wrappers that have not had 'prepare' executed.

Traditionally all synchronous job wrappers have had 'prepare' called when they are queued up, but prepare isn't called on the more transient job wrappers that are created in response to Pulsar asnchronous status update messages.
This commit is contained in:
John Chilton
2014-09-24 15:21:44 -04:00
parent 1d63a01270
commit 6f8fbf66b9
+1 -1
View File
@@ -1035,7 +1035,7 @@ class JobWrapper( object ):
else:
final_job_state = job.states.ERROR
if self.write_version_cmd:
if self.tool.version_string_cmd:
version_filename = self.get_version_string_path()
if os.path.exists(version_filename):
self.version_string = open(version_filename).read()