1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-03 17:18:54 +00:00

Teach the common module code to warn users about typo'd arguments and also set everything to None automatically such

that code doesn't have to do a lot of params.get('foo', None) everywhere.
This commit is contained in:
Michael DeHaan 2012-07-31 21:23:34 -04:00
parent 190d72761f
commit 8700de964c
3 changed files with 36 additions and 9 deletions

View file

@ -76,6 +76,12 @@ def main():
class CommandModule(AnsibleModule):
def _handle_aliases(self):
pass
def _check_invalid_arguments(self):
pass
def _load_params(self):
''' read the input and return a dictionary and the arguments string '''
args = base64.b64decode(MODULE_ARGS)