From: Yuri Weinstein Date: Mon, 10 Mar 2014 23:45:03 +0000 (-0700) Subject: Add print task. X-Git-Tag: 1.1.0~1594^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F220%2Fhead;p=teuthology.git Add print task. Made a task that simply prints the output that is given to it as an argument. Can be used like any other task (under sequential, etc...) IE: tasks: - print: "String" - chef: null - print: "Another String" Signed-off-by: Sandon Van Ness Signed-off-by: Yuri Weinstein --- diff --git a/teuthology/task/print.py b/teuthology/task/print.py new file mode 100644 index 000000000..198203fe7 --- /dev/null +++ b/teuthology/task/print.py @@ -0,0 +1,13 @@ +""" +Print task +""" + +import logging + +log = logging.getLogger(__name__) + +def task(ctx, config): + """ + Print out config argument in teuthology log/output + """ + log.info('{config}'.format(config=config))