mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
maven_artifact: Make default repository_url work again (#19194)
This commit is contained in:
@@ -367,8 +367,12 @@ def main():
|
||||
)
|
||||
)
|
||||
|
||||
repository_url = module.params["repository_url"]
|
||||
if not repository_url:
|
||||
repository_url = "http://repo1.maven.org/maven2"
|
||||
|
||||
try:
|
||||
parsed_url = urlparse(module.params["repository_url"])
|
||||
parsed_url = urlparse(repository_url)
|
||||
except AttributeError as e:
|
||||
module.fail_json(msg='url parsing went wrong %s' % e)
|
||||
|
||||
@@ -380,15 +384,11 @@ def main():
|
||||
version = module.params["version"]
|
||||
classifier = module.params["classifier"]
|
||||
extension = module.params["extension"]
|
||||
repository_url = module.params["repository_url"]
|
||||
repository_username = module.params["username"]
|
||||
repository_password = module.params["password"]
|
||||
state = module.params["state"]
|
||||
dest = module.params["dest"]
|
||||
|
||||
if not repository_url:
|
||||
repository_url = "http://repo1.maven.org/maven2"
|
||||
|
||||
#downloader = MavenDownloader(module, repository_url, repository_username, repository_password)
|
||||
downloader = MavenDownloader(module, repository_url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user