1
0
Fork 0
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:
Toshio Kuratomi 2014-12-04 11:39:35 -08:00
parent 57c77691ec
commit 3b80f63e22

View file

@ -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)