Handle the case where keyvals may not be specified on job create. This also fixes a bug where recurring jobs are created incorrectly.
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
