tasks¶
-
nornir_tests.plugins.tasks.wrap_task(wrapper=None, enabled=None, adapter=None) → nornir.core.task.Result¶ Wrap task without using @ decorator syntax
wrap_task wraps the task function of a nornir.run or task.run with all the decorators/wrappers in the tests array.
This function return
- Parameters
wrapped (Callable) – The task.task function argument