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

pull/37568/merge
Alessandro Asoni 7 years ago committed by ansibot
parent 68e7045a38
commit 6ad784bbbb

@ -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):

Loading…
Cancel
Save