I've got nothing against these additions to look in both locations. I'd be happy to see pull requests to this effect if you want to pass them along, or if not, you can file a ticket so we don't forget.
Thanks! --Michael On Sun, Feb 23, 2014 at 4:31 PM, i iordanov <[email protected]> wrote: > I looked at the code in ssh.py, and I don't understand why you don't take > /etc/ssh/ssh_known_hosts2 under consideration when deciding if the host is > in known_hosts. The only file that is taken under consideration is > $USER/.ssh/known_hosts. > > Do you think that including standard locations is a good idea? > > ... > def not_in_host_file(self, host): > host_file = > os.path.expanduser(os.path.expandvars("~${USER}/.ssh/known_hosts")) > if not os.path.exists(host_file): > print "previous known host file not found" > return True > ... > > Thanks! > iordan > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/5932d737-feef-4124-8895-f31c5d85d59b%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEVJ8QNtXUXkPXxDHPsUk5HjBLtxEwWuoX%2B3R5Cu8K6uqz4MyA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
