def send_agent_report(self, report, context):
try:<EOL><INDENT>self.state_rpc.report_state(context, report, self.use_call)<EOL>report.pop('<STR_LIT>', None)<EOL>self.use_call = False<EOL>LOG.debug("<STR_LIT>")<EOL><DEDENT>except AttributeError:<EOL><INDENT>LOG.warning("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>self.heartbeat.stop()<EOL>return<EOL><DEDENT>except Exception:<EOL><INDENT>LOG.warning("<STR_LIT>")<EOL><DEDENT>
Send the agent report via RPC.