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
pull/9730/head
Toshio Kuratomi 10 years ago
parent 57c77691ec
commit 3b80f63e22

@ -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…
Cancel
Save