diff options
author | Neil Williams <neil.williams@linaro.org> | 2015-07-03 15:57:56 +0100 |
---|---|---|
committer | Neil Williams <neil.williams@linaro.org> | 2015-07-03 15:57:56 +0100 |
commit | 8a321224f0dc1c2a491a2a1ee778668fd579f658 (patch) | |
tree | 1c6ee06d4f21762b597575a537e69979cc861c0c | |
parent | dd97fa579181ce308ad4d8d37945548be5f5e969 (diff) |
fix check to look at the dict, not the raw string
Change-Id: Id7d58abad40ffd125549db93ee1a1d3402dc7066
-rw-r--r-- | lava-job-runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lava-job-runner.py b/lava-job-runner.py index e94bc73..ba1a8fb 100644 --- a/lava-job-runner.py +++ b/lava-job-runner.py @@ -162,7 +162,7 @@ def submit_yaml_jobs(connection, server, bundle_stream=None): if 'device_type' not in job_info: print "Skipping job %s - missing device_type declaration." % job continue - if job_data['device_type'] in device_types.keys(): + if job_info['device_type'] in device_types.keys(): print "Submitting pipeline job to", job_data['device_type'] yaml_map[job] = connection.scheduler.submit_job(job_data) except (xmlrpclib.ProtocolError, xmlrpclib.Fault, |