commit 64cbd76986a2f24e81fa97d7cb242ca3948672e5 Author: Jan Tluka jtluka@redhat.com Date: Mon Jun 30 12:13:34 2014 +0200
TaskAPI: Add command description to host.run args
This patch adds 'desc' argument into HostAPI's run method.
Signed-off-by: Jan Tluka jtluka@redhat.com Signed-off-by: Jiri Pirko jiri@resnulli.us
lnst/Controller/Task.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) --- diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py index 315b099..ad7fb68 100644 --- a/lnst/Controller/Task.py +++ b/lnst/Controller/Task.py @@ -165,6 +165,8 @@ class HostAPI(object): else: msg = "Argument 'tool' not valid when running modules." raise TaskError(msg) + elif arg == "desc": + cmd["desc"] = argval else: msg = "Argument '%s' not recognised by the run() method." % arg raise TaskError(msg)
lnst-developers@lists.fedorahosted.org