'Refresh the status with the current data from spinnaker.
Args:
trace: [bool] Whether or not to log the call into spinnaker.'

def refresh(self, trace=True):

    if self.finished:
        return
    http_response = self.agent.get(self.detail_path, trace=trace)
    try:
        self.set_http_response(http_response)
    except BaseException as bex:
        sys.stderr.write('Bad    response    from    agent={0}\nCAUGHT    {1}\nRESPONSE:    {2}\n'.format(self.agent, bex, http_response))
        raise
