]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology/task: improve documentation of "print" internal task 1207/head
authorNathan Cutler <ncutler@suse.com>
Fri, 14 Sep 2018 10:41:48 +0000 (12:41 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 25 Sep 2018 10:00:15 +0000 (12:00 +0200)
The documentation is base on the commit message that first
introduced this task, but makes it clear that the arguments
will appear in teuthology.log.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
teuthology/task/print.py

index 198203fe7fe42dff29d9c9b9272dc00c30d82f60..6594c1681932ea6ab9aabe69494d44721fe873ac 100644 (file)
@@ -1,5 +1,17 @@
 """
 Print task
+
+A task that logs whatever is given to it as an argument. Can be used
+like any other task (under sequential, etc...).j
+
+For example, the following would cause the strings "String" and "Another
+string" to appear in the teuthology.log before and after the chef task
+runs, respectively.
+
+tasks:
+- print: "String"
+- chef: null
+- print: "Another String"
 """
 
 import logging