From 28d6bda2ab23a1c21b7d68cb993f53096b628387 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Mon, 16 Oct 2023 09:16:52 +0200 Subject: [PATCH] Always drop modification timestamps as immutable --- plugins/module_utils/networkfirewall.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/module_utils/networkfirewall.py b/plugins/module_utils/networkfirewall.py index 3ebc84b81ae..be3b82130c1 100644 --- a/plugins/module_utils/networkfirewall.py +++ b/plugins/module_utils/networkfirewall.py @@ -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()