Commit 3b80f63e by Toshio Kuratomi

Have known_hosts function use the url parameter instead of getting a specific…

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
parent 57c77691
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment