Skip to content

Commit

Permalink
Fix in plugins/module_utils/v4/base_info_module.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavbansal29 committed Dec 9, 2024
1 parent 9af6435 commit 39d4a31
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions plugins/module_utils/v4/base_info_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@ class BaseInfoModule(BaseModule):
select=dict(type="str"),
)

info_args_mutually_exclusive = [
("filter", "filter_string"),
]

def __init__(self, skip_info_args=False, **kwargs):
self.argument_spec = deepcopy(BaseModule.argument_spec)
self.argument_spec.pop("state")
self.argument_spec.pop("wait")
if not skip_info_args:
self.argument_spec.update(self.info_argument_spec)
info_args_mutually_exclusive = deepcopy(self.info_args_mutually_exclusive)
if kwargs.get("mutually_exclusive"):
info_args_mutually_exclusive.extend(kwargs["mutually_exclusive"])
kwargs["mutually_exclusive"] = info_args_mutually_exclusive
super(BaseInfoModule, self).__init__(**kwargs)

0 comments on commit 39d4a31

Please sign in to comment.