# File lib/cloudservers/connection.rb, line 223 def list_flavors(options = {}) path = CloudServers.paginate(options).empty? ? "#{svrmgmtpath}/flavors/detail" : "#{svrmgmtpath}/flavors/detail?#{CloudServers.paginate(options)}" response = csreq("GET",svrmgmthost,path,svrmgmtport,svrmgmtscheme) CloudServers::Exception.raise_exception(response) unless response.code.match(/^20.$/) CloudServers.symbolize_keys(JSON.parse(response.body)['flavors']) end