diff --git a/lib/ansible/module_utils/gcp_utils.py b/lib/ansible/module_utils/gcp_utils.py index 1a8c4f1b574..20d53fa6a6a 100644 --- a/lib/ansible/module_utils/gcp_utils.py +++ b/lib/ansible/module_utils/gcp_utils.py @@ -86,7 +86,7 @@ class GcpSession(object): def post(self, url, body=None, headers=None, **kwargs): if headers: - headers = self.merge_dictionaries(headers, self._headers()) + headers = self._merge_dictionaries(headers, self._headers()) else: headers = self._headers() @@ -97,7 +97,7 @@ class GcpSession(object): def post_contents(self, url, file_contents=None, headers=None, **kwargs): if headers: - headers = self.merge_dictionaries(headers, self._headers()) + headers = self._merge_dictionaries(headers, self._headers()) else: headers = self._headers()