Skip to content

Commit

Permalink
Always drop modification timestamps as immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Oct 16, 2023
1 parent 50f51ef commit 28d6bda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/module_utils/networkfirewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,9 @@ def _filter_immutable_metadata_attributes(self, metadata):
Removes information from the metadata which can't be updated.
Returns a *copy* of the metadata dictionary.
"""
return deepcopy(metadata)
meta = deepcopy(metadata)
meta.pop("LastModifiedTime", None)
return meta

def _flush_create(self):
changed = super(BaseNetworkFirewallManager, self)._flush_create()
Expand Down

0 comments on commit 28d6bda

Please sign in to comment.