From e89571eb914e2f277f5bd7994f15e535f869b7f2 Mon Sep 17 00:00:00 2001 From: "Sieradzki, Lukasz" Date: Fri, 8 Nov 2024 23:03:14 +0100 Subject: [PATCH] https://github.com/ansible-collections/google.cloud/issues/657 --- plugins/modules/gcp_pubsub_subscription.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/plugins/modules/gcp_pubsub_subscription.py b/plugins/modules/gcp_pubsub_subscription.py index f55c0d5..fa1420a 100644 --- a/plugins/modules/gcp_pubsub_subscription.py +++ b/plugins/modules/gcp_pubsub_subscription.py @@ -984,21 +984,6 @@ class SubscriptionCloudStorageConfig(object): ) def from_response(self): - return remove_nones_from_dict( - { - u'bucket': self.request.get('bucket'), - u'filenamePrefix': self.request.get('filenamePrefix', {}), - u'filenameSuffix': self.request.get('filenameSuffix', {}), - u'filenameDatetimeFormat': self.request.get('filenameDatetimeFormat', {}), - u'maxDuration': self.request.get('maxDuration', {}), - u'maxBytes': self.request.get('maxBytes', {}), - u'maxMessages': self.request.get('maxMessages', {}), - u'avroConfig': {'writeMetadata': self.request.get('avroConfig', {}).get('writeMetadata', False), - 'useTopicSchema': self.request.get('avroConfig', {}).get('useTopicSchema', False)} - if self.request.get('avroConfig', {}) - else {}, - } - ) storageConfig = { u'bucket': self.request.get('bucket', {}), u'filenamePrefix': self.request.get('filenamePrefix', {}),