From ed6a2001046f5321a7b97b4229fd6fe5da020b95 Mon Sep 17 00:00:00 2001 From: Yuri Weinstein Date: Mon, 10 Mar 2014 16:45:03 -0700 Subject: [PATCH] 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 --- teuthology/task/print.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 teuthology/task/print.py diff --git a/teuthology/task/print.py b/teuthology/task/print.py new file mode 100644 index 0000000000..198203fe7f --- /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)) -- 2.39.5