Merge lp:~stylesen/lava-scheduler/multinode into lp:lava-scheduler/multinode

Proposed by Senthil Kumaran S
Status: Merged
Approved by: Neil Williams
Approved revision: no longer in the source branch.
Merged at revision: 268
Proposed branch: lp:~stylesen/lava-scheduler/multinode
Merge into: lp:lava-scheduler/multinode
Diff against target: 13 lines (+3/-0)
1 file modified
lava_scheduler_app/models.py (+3/-0)
To merge this branch: bzr merge lp:~stylesen/lava-scheduler/multinode
Reviewer Review Type Date Requested Status
Neil Williams Approve
Review via email: mp+178135@code.launchpad.net

Description of the change

Add sub_id to the job json for multinode jobs.

To post a comment you must log in.
Revision history for this message
Neil Williams (codehelp) wrote :

Approve

review: Approve
268. By Neil Williams

Senthil Kumaran 2013-08-01 Add the subid to the JSON for result aggregation
into the job with subid zero.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lava_scheduler_app/models.py'
2--- lava_scheduler_app/models.py 2013-08-01 12:50:21 +0000
3+++ lava_scheduler_app/models.py 2013-08-01 17:34:38 +0000
4@@ -534,6 +534,9 @@
5 name=node_json[role][c]["device_type"])
6 sub_id = '.'.join([str(parent_id), str(child_id)])
7
8+ # Add sub_id to the generated job dictionary.
9+ node_json[role][c]["sub_id"] = sub_id
10+
11 job = TestJob(
12 sub_id=sub_id, submitter=submitter,
13 requested_device=target, description=job_name,

Subscribers

People subscribed via source and target branches

to status/vote changes: