def send(self): """ Request the agent to send the package profile. @return: The RMI request serial number. @rtype: str """ agent = Agent(self.context.uuid, secret=self.context.secret) profile = agent.Profile() return profile.send()
def send(context): """ Request the agent to send the package profile. :param context: The call context. :type context: pulp.server.agent.context.Context """ agent = Agent(context.url, context.route, secret=context.secret, authenticator=context.authenticator) profile = agent.Profile() profile.send()