mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Have known_hosts function use the url parameter instead of getting a specific attribute out of the module dict.
This makes the function useful in more places
This commit is contained in:
parent
57c77691ec
commit
3b80f63e22
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ def add_git_host_key(module, url, accept_hostkey=True, create_dir=True):
|
|||
|
||||
""" idempotently add a git url hostkey """
|
||||
|
||||
fqdn = get_fqdn(module.params['repo'])
|
||||
fqdn = get_fqdn(url)
|
||||
|
||||
if fqdn:
|
||||
known_host = check_hostkey(module, fqdn)
|
||||
|
|
Loading…
Reference in a new issue