mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
update hash_known_hosts docs in ssh module
This commit is contained in:
parent
e956d88f5f
commit
12f14ae37c
1 changed files with 8 additions and 1 deletions
|
@ -967,6 +967,13 @@ def hash_known_hosts(user=None, config=None):
|
|||
|
||||
.. versionadded:: 2014.7.0
|
||||
|
||||
user
|
||||
hash known hosts of this user
|
||||
|
||||
config
|
||||
path to known hosts file: can be absolute or relative to user's home
|
||||
directory
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
@ -977,7 +984,7 @@ def hash_known_hosts(user=None, config=None):
|
|||
full = _get_known_hosts_file(config=config, user=user)
|
||||
|
||||
if isinstance(full, dict):
|
||||
return full
|
||||
return full # full contains error information
|
||||
|
||||
if not os.path.isfile(full):
|
||||
return {'status': 'error',
|
||||
|
|
Loading…
Add table
Reference in a new issue