File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444from .nitro_resource_map import NITRO_RESOURCE_MAP
4545
4646
47+ skippable_resource_list = [
48+ # In some cases, although keys are listed as immutable in the nitro_resource_map, they can actually be updated.
49+ # This list helps bypass the immutability check for these resources.
50+ "sytemfile"
51+ ]
52+
53+
4754class ModuleExecutor (object ):
4855 def __init__ (self , resource_name , supports_check_mode = True ):
4956 self .resource_name = resource_name
@@ -453,7 +460,7 @@ def create_or_update(self):
453460 self .client , self .resource_name , self .resource_module_params
454461 )
455462
456- elif immutable_keys_list is None :
463+ elif immutable_keys_list is None or self . resource_name in skippable_resource_list :
457464 self .module_result ["changed" ] = True
458465 log (
459466 "INFO: Resource %s:%s exists and is different. Will be UPDATED."
You can’t perform that action at this time.
0 commit comments