1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[dreamhost|dns] Removed get_record request

- The request does not map to a Dreamhost API request, remove it.
- Updated the Records collection to use list_records instead of
  get_record in Records#get
- Added Records collection model test
This commit is contained in:
Sergio Rubio 2013-01-21 21:36:11 +01:00
parent f0d9c8aebd
commit 87d81967fa
4 changed files with 30 additions and 18 deletions

View file

@ -20,7 +20,7 @@ module Fog
end
def get(record_name)
data = service.get_record(record_name).body['data'].find { |r| r['record'] == record_name }
data = service.list_records.body['data'].find { |r| r['record'] == record_name }
new(data)
rescue Excon::Errors::NotFound
nil