commit/galaxy-central: jmchilton: Fix env job metrics plugin for multi-line properties.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/a45f6e57f3d5/ Changeset: a45f6e57f3d5 User: jmchilton Date: 2014-05-05 01:17:36 Summary: Fix env job metrics plugin for multi-line properties. Thanks to Nicola Soranzo for detailed bug report. Affected #: 1 file diff -r 116d7867f3f8efca5fdc2998bb3bb5df55724529 -r a45f6e57f3d5a4075430a6d460a6caded611b867 lib/galaxy/jobs/metrics/instrumenters/env.py --- a/lib/galaxy/jobs/metrics/instrumenters/env.py +++ b/lib/galaxy/jobs/metrics/instrumenters/env.py @@ -42,6 +42,13 @@ properties = {} for line in open( self.__env_file( job_directory ) ).readlines(): + if "=" not in line: + # Previous line may have had a multiline property value, just + # keep it simple here and only record the first part of + # property. A more robust solution might be to record env -O + # so properties are terminated by null characters instead of + # newlines. + continue var, value = line.split( "=", 1 ) if not variables or var in variables: properties[ var ] = value Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org