Now rpc_utils.create_new_job() takes a profile argument, so we have to pass it through. This fixes the resources unittest.
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]> --- frontend/afe/resources.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/afe/resources.py b/frontend/afe/resources.py index 7740ebf..3c5db7e 100644 --- a/frontend/afe/resources.py +++ b/frontend/afe/resources.py @@ -661,6 +661,7 @@ class Job(resource_lib.InstanceEntry): @classmethod def create_instance(cls, input_dict, containing_collection): owner = input_dict.get('owner') + profiles = input_dict.get('profiles', None) if not owner: owner = models.User.current_user().login @@ -715,6 +716,7 @@ class Job(resource_lib.InstanceEntry): owner=owner, options=options, host_objects=host_objects, + profiles=profiles, metahost_objects=metahost_label_objects, atomic_group=atomic_group) return models.Job.objects.get(id=job_id) -- 1.8.1.2 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
