diff --git a/plugins/modules/gcp_container_cluster.py b/plugins/modules/gcp_container_cluster.py index 7b5c092e4..d2e0407b9 100644 --- a/plugins/modules/gcp_container_cluster.py +++ b/plugins/modules/gcp_container_cluster.py @@ -1618,7 +1618,7 @@ def _contents(self): return { 'apiVersion': 'v1', 'clusters': [ - {'name': context, 'cluster': {'certificate-authority-data': str(self.fetch['masterAuth']['clusterCaCertificate']), 'server': endpoint}} + {'name': context, 'cluster': {'certificate-authority-data': str(self.fetch['masterAuth']['clusterCaCertificate']), 'server': endpoint,}} ], 'contexts': [{'name': context, 'context': {'cluster': context, 'user': context}}], 'current-context': context, diff --git a/plugins/modules/gcp_pubsub_subscription.py b/plugins/modules/gcp_pubsub_subscription.py index 837d815ff..3f2b697ca 100644 --- a/plugins/modules/gcp_pubsub_subscription.py +++ b/plugins/modules/gcp_pubsub_subscription.py @@ -609,7 +609,10 @@ def topic_pattern(name, module): regex = r"projects/.*/topics/.*" if not re.match(regex, name): - formatted_params = {'project': module.params['project'], 'topic': replace_resource_dict(module.params['topic'], 'name')} + formatted_params = { + 'project': module.params['project'], + 'topic': replace_resource_dict(module.params['topic'], 'name'), + } name = "projects/{project}/topics/{topic}".format(**formatted_params) return name