mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-26 08:51:50 -06:00
Skip know_host check for ipa-replica-conncheck
When IPA replica is installed and the master machine record is not in ~/.ssh/known_hosts, ipa-replica-install will prompt user to answer a question about adding a host to this file. This has, however, a potential to break automatic tests. ipa-replica-conncheck should not require any further user interaction when all mandatory options are filled. https://fedorahosted.org/freeipa/ticket/1305
This commit is contained in:
parent
e773124474
commit
ab098ada04
@ -330,7 +330,9 @@ def main():
|
||||
|
||||
stderr = ''
|
||||
remote_addr = "%s@%s" % (user, options.master)
|
||||
(stdout, stderr, returncode) = ipautil.run(['/usr/bin/ssh', remote_addr,
|
||||
(stdout, stderr, returncode) = ipautil.run(['/usr/bin/ssh',
|
||||
'-q', '-o StrictHostKeychecking=no',
|
||||
'-o UserKnownHostsFile=/dev/null', remote_addr,
|
||||
"/usr/sbin/ipa-replica-conncheck " + " ".join(remote_check_opts)],
|
||||
env={'KRB5_CONFIG':KRB5_CONFIG, 'KRB5CCNAME' : CCACHE_FILE},
|
||||
raiseonerr=False)
|
||||
|
Loading…
Reference in New Issue
Block a user