1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixed issue with accessing response in digital_ocean module (#37268)

This commit is contained in:
Alessandro Asoni 2018-03-22 07:35:56 -07:00 committed by ansibot
parent 68e7045a38
commit 6ad784bbbb

View file

@ -137,7 +137,8 @@ class DoManager(DigitalOceanHelper, object):
def edit_domain_record(self): def edit_domain_record(self):
params = {'name': self.domain_name} params = {'name': self.domain_name}
resp = self.put('domains/%s/records/%s' % (self.domain_name, self.domain_id), data=params) resp = self.put('domains/%s/records/%s' % (self.domain_name, self.domain_id), data=params)
return resp['domain_record'] status, json = self.jsonify(resp)
return json['domain_record']
def core(module): def core(module):