]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add print task. 220/head
authorYuri Weinstein <yuri.weinstein@inktank.com>
Mon, 10 Mar 2014 23:45:03 +0000 (16:45 -0700)
committerYuri Weinstein <yuri.weinstein@inktank.com>
Mon, 10 Mar 2014 23:45:03 +0000 (16:45 -0700)
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 <sandon@inktank.com>
Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
teuthology/task/print.py [new file with mode: 0644]

diff --git a/teuthology/task/print.py b/teuthology/task/print.py
new file mode 100644 (file)
index 0000000..198203f
--- /dev/null
@@ -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))