Skip to content

Commit 7e00f3d

Browse files
sanity error
1 parent 24feca8 commit 7e00f3d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

plugins/module_utils/module_executor.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,14 @@ def __init__(self, resource_name, supports_check_mode=True):
7979
)
8080
argument_spec.update(module_state_argument)
8181

82-
consider_non_updatable_arguments = dict(type="bool", default=True)
82+
consider_non_updatable_arguments = dict(
83+
consider_non_updatable=
84+
dict(
85+
type="bool",
86+
choices = list(True, False),
87+
default=True,
88+
)
89+
)
8390
argument_spec.update(consider_non_updatable_arguments)
8491

8592
self.module = AnsibleModule(
@@ -471,7 +478,7 @@ def create_or_update(self):
471478
consider_non_updatable_args = self.module.params.get('consider_non_updatable_arguments', False)
472479
if consider_non_updatable_args:
473480
log(
474-
"INFO: Resource %s:%s exists and is different. %s"
481+
"INFO: Resource %s:%s exists and is different."
475482
% (self.resource_name, self.resource_id)
476483
)
477484
ok, err = update_resource(
@@ -485,7 +492,7 @@ def create_or_update(self):
485492

486493
is_identical, temp_immutable_list = self.is_resource_identical()
487494
# temp_immutable_list is a dummy as '_' is not allowed in lint.
488-
495+
489496
if is_identical:
490497
msg = (
491498
f"Resource {self.resource_name}/{self.resource_id} not updated because user is trying to "

0 commit comments

Comments
 (0)