File tree 1 file changed +8
-1
lines changed 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 44
44
from .nitro_resource_map import NITRO_RESOURCE_MAP
45
45
46
46
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
+
47
54
class ModuleExecutor (object ):
48
55
def __init__ (self , resource_name , supports_check_mode = True ):
49
56
self .resource_name = resource_name
@@ -461,7 +468,7 @@ def create_or_update(self):
461
468
self .client , self .resource_name , self .resource_module_params
462
469
)
463
470
464
- elif immutable_keys_list is None :
471
+ elif immutable_keys_list is None or self . resource_name in skippable_resource_list :
465
472
self .module_result ["changed" ] = True
466
473
log (
467
474
"INFO: Resource %s:%s exists and is different. Will be UPDATED."
You can’t perform that action at this time.
0 commit comments