'Returns a list of all hardware templates
@inherits: :class:`NodeDriver.list_sizes`'

def list_sizes(self, location=None):

    response = self.connection.request('/rest/hosting/htemplate/list').parse_body()
    sizes = []
    for htemplate in response['templates']:
        sizes.append(NodeSize(id=htemplate['uuid'], name=htemplate['name'], ram=htemplate['memory'], disk=0, bandwidth=0, price=0, driver=self))
    return sizes
