This will cause it to be instrumented for timing via the bits in
run_tasks.
Signed-off-by: Zack Cerza <zack@redhat.com>
Kernel installation task
"""
+import contextlib
import logging
import os
import re
return sha1
+@contextlib.contextmanager
def task(ctx, config):
"""
Make sure the specified kernel is installed.
for role, role_config in config.items():
p.spawn(process_role, ctx, config, timeout, role, role_config)
+ try:
+ yield
+ finally:
+ pass
+
def process_role(ctx, config, timeout, role, role_config):
need_install = None # sha1 to dl, or path to rpm or deb