コード例 #1
0
ファイル: pulpagent.py プロジェクト: tomlanyon/pulp
 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()
コード例 #2
0
ファイル: pulpagent.py プロジェクト: beav/pulp
 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()