Ejemplo n.º 1
0
def _post_run(action_name, root_dir, config, components, time_taken, results):
    LOG.info("It took (%s) to complete action [%s]" % (common.format_secs_taken(time_taken), action_name))
    if results:
        LOG.info('Check [%s] for traces of what happened.' % ", ".join(results))
    #show any configs read/touched/used...
    _print_cfgs(config, action_name)
    #try to remove the root - ok if this fails
    if action_name == settings.UNINSTALL:
        if root_dir:
            sh.rmdir(root_dir)
Ejemplo n.º 2
0
def _post_run(action_name, **kargs):
    if action_name == settings.UNINSTALL:
        root_dir = kargs.get("root_dir")
        if root_dir:
            sh.rmdir(root_dir)