diff --git a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py index 3e0f9017f12..f6df1749c07 100644 --- a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py +++ b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py @@ -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):