10
11
12
13
14
15
16
|
# File 'lib/deltacloud/drivers/rackspace/anti_cache_monkey_patch.rb', line 10
def list_servers_detail(options = {})
anti_cache_param="cacheid=#{Time.now.to_i}"
path = CloudServers.paginate(options).empty? ? "#{svrmgmtpath}/servers/detail?#{anti_cache_param}" : "#{svrmgmtpath}/servers/detail?#{CloudServers.paginate(options)}&#{anti_cache_param}"
response = csreq("GET",svrmgmthost,path,svrmgmtport,svrmgmtscheme)
CloudServers::Exception.raise_exception(response) unless response.code.match(/^20.$/)
CloudServers.symbolize_keys(JSON.parse(response.body)["servers"])
end
|