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

(cherry picked from commit 6ad784bbbb)
pull/37276/head
Abhijeet Kasurde 7 years ago committed by Matt Davis
parent ae0a9a5e9c
commit 2dd02eb812

@ -143,7 +143,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):

Loading…
Cancel
Save