1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

maven_artifact: enforce required params (fixes #44823) (#44967)

This commit is contained in:
S. Veyrié 2018-08-31 17:38:09 +02:00 committed by ansibot
parent a30785058a
commit 60af5ab962

View file

@ -444,8 +444,8 @@ class MavenDownloader:
def main(): def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
group_id=dict(default=None), group_id=dict(required=True),
artifact_id=dict(default=None), artifact_id=dict(required=True),
version=dict(default="latest"), version=dict(default="latest"),
classifier=dict(default=''), classifier=dict(default=''),
extension=dict(default='jar'), extension=dict(default='jar'),
@ -454,7 +454,7 @@ def main():
password=dict(default=None, no_log=True, aliases=['aws_secret_access_key']), password=dict(default=None, no_log=True, aliases=['aws_secret_access_key']),
state=dict(default="present", choices=["present", "absent"]), # TODO - Implement a "latest" state state=dict(default="present", choices=["present", "absent"]), # TODO - Implement a "latest" state
timeout=dict(default=10, type='int'), timeout=dict(default=10, type='int'),
dest=dict(type="path", default=None), dest=dict(type="path", required=True),
validate_certs=dict(required=False, default=True, type='bool'), validate_certs=dict(required=False, default=True, type='bool'),
keep_name=dict(required=False, default=False, type='bool'), keep_name=dict(required=False, default=False, type='bool'),
verify_checksum=dict(required=False, default='download', choices=['never', 'download', 'change', 'always']) verify_checksum=dict(required=False, default='download', choices=['never', 'download', 'change', 'always'])