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

[rackspace][dns] fixes for job request format

This commit is contained in:
geemus 2011-10-25 10:43:06 -05:00
parent 9aabd850fd
commit 2ac4ff250f
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ module Fog
}
response = wait_for_job connection.add_records(@zone.identity, [options]).body['jobId']
merge_attributes(response.body['request']['records'].first)
merge_attributes(response.body['request']['records'].select {|record| record['name'] == self.name && record['type'] == self.type && record['value'] == self.value})
true
end

View file

@ -52,7 +52,7 @@ module Fog
response = connection.create_domains([data])
response = wait_for_job response.body['jobId']
merge_attributes(response.body['domains'].first)
merge_attributes(response.body['request']['domains'].select {|domain| domain['name'] == self.domain})
end
def update