def _resize_node(self, node, size):
        if (size < 300 or size > 4000):
            return False

        params = {
            'cmd' : 'dreamhost_ps-set_size',
            'ps' : node.id,
            'size' : size
        }
        try:
            return self.connection.request('/', params).success()
        except DreamhostAPIException:
            return False
dataset/ETHPy150Open cloudkick/libcloud/libcloud/compute/drivers/dreamhost.py/DreamhostNodeDriver._resize_node/original