mark a couple of functions as since 1.5.2
This commit is contained in:
parent
5c2c949b1e
commit
8e81ba61f5
|
@ -216,6 +216,8 @@ def parse_ssh_config(file_obj):
|
||||||
@type file_obj: file
|
@type file_obj: file
|
||||||
@return: opaque configuration object
|
@return: opaque configuration object
|
||||||
@rtype: object
|
@rtype: object
|
||||||
|
|
||||||
|
@since: 1.5.2
|
||||||
"""
|
"""
|
||||||
ret = []
|
ret = []
|
||||||
config = { 'host': '*' }
|
config = { 'host': '*' }
|
||||||
|
@ -271,6 +273,8 @@ def lookup_ssh_host_config(hostname, config):
|
||||||
@type hostname: str
|
@type hostname: str
|
||||||
@param config: the config object to search
|
@param config: the config object to search
|
||||||
@type config: object
|
@type config: object
|
||||||
|
|
||||||
|
@since: 1.5.2
|
||||||
"""
|
"""
|
||||||
matches = [x for x in config if fnmatch.fnmatch(hostname, x['host'])]
|
matches = [x for x in config if fnmatch.fnmatch(hostname, x['host'])]
|
||||||
# sort in order of shortest match (usually '*') to longest
|
# sort in order of shortest match (usually '*') to longest
|
||||||
|
|
Loading…
Reference in New Issue