def METHOD_NAME(c: Connection) -> None:
    """
    Error out if there is not Vagrant instance associated with this directory
    """
    pwd = c.run('pwd', hide=True).stdout.strip()
    if not os.path.isfile(pwd + '/Vagrantfile'):
        # check if we are on a vagrant subdirectory
        ret_code = c.run('vagrant validate', hide=True, warn=True).return_code
        if ret_code != 0:
            print("Error: Vagrantfile not found or not valid")
            exit(ret_code)