mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
hide internal params once used
This commit is contained in:
parent
e0ed88e668
commit
6a62ad6c4b
1 changed files with 4 additions and 0 deletions
|
@ -1150,6 +1150,10 @@ class AnsibleModule(object):
|
||||||
elif check_invalid_arguments and k not in self._legal_inputs:
|
elif check_invalid_arguments and k not in self._legal_inputs:
|
||||||
self.fail_json(msg="unsupported parameter for module: %s" % k)
|
self.fail_json(msg="unsupported parameter for module: %s" % k)
|
||||||
|
|
||||||
|
#clean up internal params:
|
||||||
|
if k.startswith('_ansible_'):
|
||||||
|
del self.params[k]
|
||||||
|
|
||||||
def _count_terms(self, check):
|
def _count_terms(self, check):
|
||||||
count = 0
|
count = 0
|
||||||
for term in check:
|
for term in check:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue