def METHOD_NAME(self, result, state):
    if self.beaker_url is None:
        return
    location = self.post_result(state)
    if location is None:
        return
    logfile = state.get("logfile")
    self.put_file(location, "logfile", logfile)
    ppstate = pprint.pformat(state).encode("utf8")
    self.put_data(location, "state", ppstate)
    pattern = os.path.join(state.get("logdir"), "*")
    filelist = [f for f in glob.glob(pattern) if f != logfile]
    self.put_file_list(location, "", filelist)