'Change an existing server flavor / scale the server up or down.
:param      node: node to resize.
:type       node: :class:`Node`
:param      size: new size.
:type       size: :class:`NodeSize`
:rtype: ``bool``'

def ex_resize(self, node, size):

    elm = ET.Element('resize', {'xmlns': self.XML_NAMESPACE, 'flavorId': str(size.id)})
    resp = self.connection.request(('/servers/%s/action' % node.id), method='POST', data=ET.tostring(elm))
    return (resp.status == httplib.ACCEPTED)
