Fix arguments and docs (#2147)

- oauthkey shouldn't be logged
- action should be restricted and checked and the
doc should correspond to the code
pull/18777/head
Michael Scherer 9 years ago committed by Matt Clay
parent a7fe4cee03
commit 2f51bf3a9c

@ -57,7 +57,7 @@ options:
description:
- This tells the githooks module what you want it to do.
required: true
choices: [ "create", "cleanall" ]
choices: [ "create", "cleanall", "list", "clean504" ]
validate_certs:
description:
- If C(no), SSL certificates for the target repo will not be validated. This should only be used
@ -152,9 +152,9 @@ def _delete(module, hookurl, oauthkey, repo, user, hookid):
def main():
module = AnsibleModule(
argument_spec=dict(
action=dict(required=True),
action=dict(required=True, choices=['list','clean504','cleanall','create']),
hookurl=dict(required=False),
oauthkey=dict(required=True),
oauthkey=dict(required=True, no_log=True),
repo=dict(required=True),
user=dict(required=True),
validate_certs=dict(default='yes', type='bool'),

Loading…
Cancel
Save