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):
params = {'name': self.domain_name}
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):