1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

GCP resource representation uses "rrdatas" property instead of "target" (#51479)

This commit is contained in:
bverschueren 2019-01-30 21:51:33 +01:00 committed by ansibot
parent 3cfe08b191
commit f99aaa7144

View file

@ -326,7 +326,7 @@ def is_different(module, response):
# Remove unnecessary properties from the response.
# This is for doing comparisons with Ansible's current parameters.
def response_to_hash(module, response):
return {u'name': response.get(u'name'), u'type': response.get(u'type'), u'ttl': response.get(u'ttl'), u'rrdatas': response.get(u'target')}
return {u'name': response.get(u'name'), u'type': response.get(u'type'), u'ttl': response.get(u'ttl'), u'rrdatas': response.get(u'rrdatas')}
def updated_record(module):