From 840a4db65e016cec0c8e97ca788e033a406783e6 Mon Sep 17 00:00:00 2001 From: The Magician Date: Mon, 3 May 2021 13:40:31 -0700 Subject: [PATCH] Added ForceNew on labels (#4734) (#412) * Added ForeNew on labels * set ForceNew on key & key_value * added a test Signed-off-by: Modular Magician --- plugins/modules/gcp_logging_metric.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/modules/gcp_logging_metric.py b/plugins/modules/gcp_logging_metric.py index 9a2f4b9..1330422 100644 --- a/plugins/modules/gcp_logging_metric.py +++ b/plugins/modules/gcp_logging_metric.py @@ -726,7 +726,9 @@ class MetricLabelsArray(object): return remove_nones_from_dict({u'key': item.get('key'), u'description': item.get('description'), u'valueType': item.get('value_type')}) def _response_from_item(self, item): - return remove_nones_from_dict({u'key': item.get(u'key'), u'description': item.get(u'description'), u'valueType': item.get(u'valueType')}) + return remove_nones_from_dict( + {u'key': self.module.params.get('key'), u'description': item.get(u'description'), u'valueType': self.module.params.get('value_type')} + ) class MetricBucketoptions(object):