From f99aaa71448703b9f712ab0fad836d9aff1f6763 Mon Sep 17 00:00:00 2001
From: bverschueren <bverschueren@users.noreply.github.com>
Date: Wed, 30 Jan 2019 21:51:33 +0100
Subject: [PATCH] GCP resource representation uses "rrdatas" property instead
 of "target" (#51479)

---
 lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py b/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py
index d87bd82de3b..a6fccb7032a 100644
--- a/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py
+++ b/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py
@@ -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):