Skip to content

Commit

Permalink
Added ForceNew on labels (#4734) (#412)
Browse files Browse the repository at this point in the history
* Added ForeNew on labels

* set ForceNew on key & key_value

* added a test

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored May 3, 2021
1 parent b84fd05 commit 840a4db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/modules/gcp_logging_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,9 @@ def _request_for_item(self, item):
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):
Expand Down

0 comments on commit 840a4db

Please sign in to comment.