mixcoatl/infrastructure/machine_image.py
def register_agent(self, agent_version, **kwargs):
        """Registers an agent with the machine image.

        :param agent_version: The agent protocol version to be registered.
        :type name: int.
        :returns: True if successful or an error message if fails.
        """
        payload = {'registerAgent': [{"agentVersion": agent_version}]}
        p = self.PATH + "/" + str(self.machine_image_id)
        return self.put(p, data=json.dumps(payload))
Registers an agent with the machine image.

        :param agent_version: The agent protocol version to be registered.
        :type name: int.
        :returns: True if successful or an error message if fails.
        
Registers an agent with the machine image.
Registers an agent with the machine image .
def register_agent(self, agent_version, **kwargs):
        payload = {'registerAgent': [{"agentVersion": agent_version}]}
        p = self.PATH + "/" + str(self.machine_image_id)
        return self.put(p, data=json.dumps(payload))
def register_agent ( self , agent_version , ** kwargs ) : payload = { 'registerAgent' : [ { "agentVersion" : agent_version } ] } p = self . PATH + "/" + str ( self . machine_image_id ) return self . put ( p , data = json . dumps ( payload ) )
Registers an agent with the machine image.
Registers an agent with the machine image .
"""Registers an agent with the machine image.

        :param agent_version: The agent protocol version to be registered.
        :type name: int.
        :returns: True if successful or an error message if fails.
        """
True if successful or an error message if fails.
True if successful or an error message if fails .
self
agent_version
The agent protocol version to be registered.
The agent protocol version to be registered .