

def create_node(self, name, image, size, **kwargs):
    params = {
        'Action': 'RunInstances',
        'ImageId': image.id,
        'MinCount': kwargs.get('mincount', '1'),
        'MaxCount': kwargs.get('maxcount', '1'),
        'InstanceType': size.id,
    }
    try:
        params['SecurityGroup'] = kwargs['securitygroup']
    except KeyError:
        pass
    try:
        params['KeyName'] = object['keyname']
    except KeyError:
        pass
    object = self.connection.request('/', params=params).object
    nodes = self._to_nodes(object, 'instancesSet/item')
    if (len(nodes) == 1):
        return nodes[0]
    else:
        return nodes

dataset/ETHPy150Open infincia/AEServmon/libcloud/drivers/ec2.py EC2NodeDriver.create_node/VarMisuse@100/142 `kwargs`->`object`