Fix arguments and docs (#2147)
- oauthkey shouldn't be logged - action should be restricted and checked and the doc should correspond to the code
This commit is contained in:
parent
12f1c85aa3
commit
7fd4180857
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue