=== modified file 'doc/changes.rst'
@@ -9,6 +9,7 @@
* Increase wget connect timeout to see if we can work around a possible
issue where the server gets busy, and doesn't connect quickly enough
for getting the tarballs
+* Stop reading the long-obsolete 'image_type' field from the job json.
.. _version_0_5_6:
=== modified file 'doc/examples/jobs/android-new-kernel.json'
@@ -1,6 +1,5 @@
{
"job_name": "android_new_kernel",
- "image_type": "android",
"target": "panda01",
"timeout": 18000,
"actions": [
=== modified file 'doc/examples/jobs/lava-android-test-leb-panda.json'
@@ -1,6 +1,5 @@
{
"job_name": "android_monkey_test2",
- "image_type": "android",
"target": "panda01",
"timeout": 18000,
"actions": [
=== modified file 'doc/jobfile.rst'
@@ -85,7 +85,6 @@
{
"job_name": "android_new_kernel",
- "image_type": "android",
"target": "panda01",
"timeout": 18000,
"actions": [
@@ -140,7 +139,6 @@
{
"job_name": "android_monkey_test2",
- "image_type": "android",
"target": "panda01",
"timeout": 18000,
"actions": [
=== modified file 'lava_dispatcher/context.py'
@@ -28,7 +28,7 @@
class LavaContext(object):
- def __init__(self, target, image_type, dispatcher_config, oob_file, job_data):
+ def __init__(self, target, dispatcher_config, oob_file, job_data):
self.config = dispatcher_config
self.job_data = job_data
device_config = get_device_config(
=== modified file 'lava_dispatcher/job.py'
@@ -58,9 +58,6 @@
'job_name': {
'optional': True,
},
- 'image_type': {
- 'optional': True,
- },
'target': {
'optional': True,
},
@@ -79,7 +76,7 @@
self.job_status = 'pass'
self.load_job_data(job_json)
self.context = LavaContext(
- self.target, self.image_type, config, oob_file, self.job_data)
+ self.target, config, oob_file, self.job_data)
def load_job_data(self, job_json):
self.job_data = json.loads(job_json)
@@ -95,10 +92,6 @@
except :
return None
- @property
- def image_type(self):
- return self.job_data.get('image_type')
-
def validate(self):
schema = Schema(job_schema)
validator = Validator()