def are_vms_in_state(data):
    """Test if the results indicate all virtual machines are the desired state"""

    for result in data["results"]:
        if result["changed"] and result["stdout"] != 'yes':
            return(False)
    return(True)