From: Eggs Spam Ham <[email protected]>

This is a fix for issue #592 - exception when
creating recurring jobs - the maintainers forgot
to update the job creation interface during the
profile changes.

Signed-off-by: Eggs Spam Ham <[email protected]>
---
 scheduler/monitor_db.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scheduler/monitor_db.py b/scheduler/monitor_db.py
index a2cd5c5..1443012 100644
--- a/scheduler/monitor_db.py
+++ b/scheduler/monitor_db.py
@@ -822,6 +822,7 @@ class Dispatcher(object):
             options = job.get_object_dict()
 
             host_objects = info['hosts']
+            profiles = info['profiles']
             one_time_hosts = info['one_time_hosts']
             metahost_objects = info['meta_hosts']
             atomic_group = info['atomic_group']
@@ -834,6 +835,7 @@ class Dispatcher(object):
                 rpc_utils.create_new_job(owner=rrun.owner.login,
                                          options=options,
                                          host_objects=host_objects,
+                                         profiles=profiles,
                                          metahost_objects=metahost_objects,
                                          atomic_group=atomic_group)
 
-- 
1.8.1.2

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to