def container_get_facts(container_name, module):
    """
    Extract facts for a given container.

    Parameters
    ----------
    container_name : string
        Container name to look for
    module : AnsibleModule
        Ansible module.

    Returns
    -------
    dict
        [description]
    """
    if "cvp_facts" in module.params:
        if "containers" in module.params["cvp_facts"]:
            for container in module.params["cvp_facts"]["containers"]:
                if container_name == container["Name"]:
                    return container
    return []