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