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:
Martin Kosek 2011-06-08 14:33:31 +02:00 committed by Rob Crittenden
parent e773124474
commit ab098ada04

View File

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