From 6ad784bbbb68a13a936d492fc07a89cedb486219 Mon Sep 17 00:00:00 2001 From: Alessandro Asoni Date: Thu, 22 Mar 2018 07:35:56 -0700 Subject: [PATCH] Fixed issue with accessing response in digital_ocean module (#37268) --- .../modules/cloud/digital_ocean/digital_ocean_domain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 7b3738d2414..a24978e0903 100644 --- a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py +++ b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py @@ -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):