mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix gitlab_* module boolean parameter declaration (#2385)
Without these fixes using the modules would result in the following error: implementation error: unknown type <type 'bool'> requested for validate_certs
This commit is contained in:
parent
7144a88897
commit
478691f297
3 changed files with 8 additions and 8 deletions
|
@ -146,7 +146,7 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
server_url=dict(required=True),
|
server_url=dict(required=True),
|
||||||
validate_certs=dict(required=False, default=True, type=bool, aliases=['verify_ssl']),
|
validate_certs=dict(required=False, default=True, type='bool', aliases=['verify_ssl']),
|
||||||
login_user=dict(required=False, no_log=True),
|
login_user=dict(required=False, no_log=True),
|
||||||
login_password=dict(required=False, no_log=True),
|
login_password=dict(required=False, no_log=True),
|
||||||
login_token=dict(required=False, no_log=True),
|
login_token=dict(required=False, no_log=True),
|
||||||
|
|
|
@ -297,7 +297,7 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
server_url=dict(required=True),
|
server_url=dict(required=True),
|
||||||
validate_certs=dict(required=False, default=True, type=bool, aliases=['verify_ssl']),
|
validate_certs=dict(required=False, default=True, type='bool', aliases=['verify_ssl']),
|
||||||
login_user=dict(required=False, no_log=True),
|
login_user=dict(required=False, no_log=True),
|
||||||
login_password=dict(required=False, no_log=True),
|
login_password=dict(required=False, no_log=True),
|
||||||
login_token=dict(required=False, no_log=True),
|
login_token=dict(required=False, no_log=True),
|
||||||
|
@ -305,11 +305,11 @@ def main():
|
||||||
name=dict(required=True),
|
name=dict(required=True),
|
||||||
path=dict(required=False),
|
path=dict(required=False),
|
||||||
description=dict(required=False),
|
description=dict(required=False),
|
||||||
issues_enabled=dict(default=True, type=bool),
|
issues_enabled=dict(default=True, type='bool'),
|
||||||
merge_requests_enabled=dict(default=True, type=bool),
|
merge_requests_enabled=dict(default=True, type='bool'),
|
||||||
wiki_enabled=dict(default=True, type=bool),
|
wiki_enabled=dict(default=True, type='bool'),
|
||||||
snippets_enabled=dict(default=True, type=bool),
|
snippets_enabled=dict(default=True, type='bool'),
|
||||||
public=dict(default=False, type=bool),
|
public=dict(default=False, type='bool'),
|
||||||
visibility_level=dict(default="0", choices=["0", "10", "20"]),
|
visibility_level=dict(default="0", choices=["0", "10", "20"]),
|
||||||
import_url=dict(required=False),
|
import_url=dict(required=False),
|
||||||
state=dict(default="present", choices=["present", 'absent']),
|
state=dict(default="present", choices=["present", 'absent']),
|
||||||
|
|
|
@ -263,7 +263,7 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
server_url=dict(required=True),
|
server_url=dict(required=True),
|
||||||
validate_certs=dict(required=False, default=True, type=bool, aliases=['verify_ssl']),
|
validate_certs=dict(required=False, default=True, type='bool', aliases=['verify_ssl']),
|
||||||
login_user=dict(required=False, no_log=True),
|
login_user=dict(required=False, no_log=True),
|
||||||
login_password=dict(required=False, no_log=True),
|
login_password=dict(required=False, no_log=True),
|
||||||
login_token=dict(required=False, no_log=True),
|
login_token=dict(required=False, no_log=True),
|
||||||
|
|
Loading…
Reference in a new issue