def example(manager_and_vm, ssh_key, tmpdir, logger, test_config):
    manager, vm = manager_and_vm

    example = get_example_deployment(
        manager, ssh_key, logger, 'inplace_restore', test_config, vm)

    try:
        yield example
    finally:
        if example.installed:
            example.uninstall()