On Thu, 2010-04-15 at 15:00 -0700, James Ren wrote: > Handle the case where keyvals may not be specified on job create. This > also fixes a bug where recurring jobs are created incorrectly.
Great, it does indeed fix the problem I was having with recurring jobs. Thanks James! > Signed-off-by: James Ren <[email protected]> > > --- autotest/frontend/afe/models.py 2010-04-12 13:55:37.000000000 -0700 > +++ autotest/frontend/afe/models.py 2010-04-15 14:59:52.000000000 -0700 > @@ -724,7 +724,7 @@ > > job.dependency_labels = options['dependencies'] > > - if options['keyvals'] is not None: > + if options.get('keyvals'): > for key, value in options['keyvals'].iteritems(): > JobKeyval.objects.create(job=job, key=key, value=value) > _______________________________________________ > Autotest mailing list > [email protected] > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
