Is the get_device_version sufficiently exception-safe? ie - the 3 lines
of code after this are important or the lava-results won't get submitted
properly. I'm not the best at proper error handling, maybe Michael can
speculate. Also - this wraps way past column 80 and is going to make
pylint/pflakes/etc complain.
On 12/06/2012 08:21 AM, Antonio Terceiro wrote: r/job.py' /job.py 2012-11-24 20:58:07 +0000 /job.py 2012-12-06 14:20:27 +0000 device_ version' : self.context. get_device_ version( ), test_data. job_status = 'fail' test_data. add_metadata( { 'target. device_ version' : self.context. get_device_ version( ) or 'error'})
> === modified file 'lava_dispatche
> --- lava_dispatcher
> +++ lava_dispatcher
> @@ -148,7 +148,6 @@
>
> metadata = {
> 'target.hostname': self.target,
> - 'target.
> }
>
> if 'device_type' in self.job_data:
> @@ -232,6 +231,7 @@
> self.context.
> raise
> finally:
> + self.context.
Is the get_device_version sufficiently exception-safe? ie - the 3 lines
of code after this are important or the lava-results won't get submitted
properly. I'm not the best at proper error handling, maybe Michael can
speculate. Also - this wraps way past column 80 and is going to make
pylint/pflakes/etc complain.
> if submit_results: results. get('parameters ', {}) submit_ results[ 'command' ]](
> params = submit_
> action = lava_commands[