ceph/teuthology/task/print.py
Yuri Weinstein ed6a200104 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 <sandon@inktank.com>
Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
2014-03-10 16:45:03 -07:00

14 lines
212 B
Python

"""
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))