Commit 716424a3 authored by Florent Jacquet's avatar Florent Jacquet
Browse files

api: fix scheduler.jobs.submit's docstring



The return value is actually different when submitting multinode jobs or simple
jobs. This fixes the docstring to inform about that.

Change-Id: Iaf0e1570e180ad17c33a30b090c32cb9cdede9fd
Signed-off-by: default avatarFlorent Jacquet <florent.jacquet@free-electrons.com>
parent ae39d57b
......@@ -71,6 +71,8 @@ class SchedulerAPI(ExposedAPI):
------------
This function returns an XML-RPC integer which is the newly created
job's id, provided the user is authenticated with an username and token.
If the job is a multinode job, this function returns the list of created
job IDs.
"""
self._authenticate()
if not self.user.has_perm('lava_scheduler_app.add_testjob'):
......
......@@ -264,6 +264,8 @@ class SchedulerJobsAPI(ExposedAPI):
------------
This function returns an XML-RPC integer which is the newly created
job's id, provided the user is authenticated with an username and token.
If the job is a multinode job, this function returns the list of created
job IDs.
"""
cls = SchedulerAPI(self._context)
return cls.submit_job(definition)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment