ansible/lib/ansible
Will Thames 103ede26df Ensure ssh hostkey checks respect server port (#20840)
* Add tests for `get_fqdn_and_port` method.

Currently tests verify original behavior - returning default `ssh-keyscan` port
Add test around `add_host_key` to verify underlying command arguments
Add some new expectations for `get_fqdn_and_port`
Test that non-standard port is passed to `ssh-keyscan` command

* Ensure ssh hostkey checks respect server port

ssh-keyscan will default to getting the host key for port 22.
If the ssh service is running on a different port, ssh-keyscan
will need to know this.

Tidy up minor flake8 issues

* Update known_hosts tests for port being None

Ensure that git urls don't try and set port when a path
is specified

Update known_hosts tests to meet flake8

* Fix stdin swap context for test_known_hosts

Move test_known_hosts from under basic, as it is its own library.
Remove module_utils.known_hosts from pep8 legacy files list
2017-02-15 11:47:57 -08:00
..
cli fix non-zero exit code on missing role file (#19002) 2017-02-14 17:57:06 +01:00
compat Fix typo when choosing KqueueSelector 2017-02-06 08:46:58 -08:00
config
errors adds feature to all modules to be run locally (#18763) 2016-12-15 15:47:29 -05:00
executor code clean of old code from network modules updates (#21469) 2017-02-15 12:46:30 -05:00
galaxy PEP 8 E111 & E114 cleanup. (#20838) 2017-01-30 15:01:47 -08:00
inventory Use a custom id generator over uuid4 2017-02-10 14:38:38 -06:00
module_utils Ensure ssh hostkey checks respect server port (#20840) 2017-02-15 11:47:57 -08:00
modules Fixes #19835: enable role attribute change when not changing password (#19834) 2017-02-15 13:47:15 -05:00
parsing improve error message on conflicting actions. Fixes #21057 (#21059) 2017-02-06 22:48:06 +00:00
playbook delegate_to is a string 2017-02-10 20:07:49 -05:00
plugins Fix junit callback handling of surrogate escapes. 2017-02-15 10:51:55 -08:00
template Also clean template data even if marked unsafe 2017-02-10 10:08:55 -06:00
utils updates iosxr modules to support socket (#21231) 2017-02-15 10:47:02 -05:00
vars Revert "Fixing another corner case for security related to CVE-2016-9587" 2017-02-10 08:27:26 -06:00
__init__.py
constants.py Added DIFF_ALWAYS constant 2017-02-09 18:28:50 -05:00
release.py