mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Fix comment yaml escaping in authorized_key module
This commit is contained in:
@@ -215,6 +215,9 @@ def parsekey(raw_key):
|
|||||||
key_type = None # type of ssh key
|
key_type = None # type of ssh key
|
||||||
type_index = None # index of keytype in key string|list
|
type_index = None # index of keytype in key string|list
|
||||||
|
|
||||||
|
# remove comment yaml escapes
|
||||||
|
raw_key = raw_key.replace('\#', '#')
|
||||||
|
|
||||||
# split key safely
|
# split key safely
|
||||||
lex = shlex.shlex(raw_key)
|
lex = shlex.shlex(raw_key)
|
||||||
lex.quotes = ["'", '"']
|
lex.quotes = ["'", '"']
|
||||||
|
|||||||
Reference in New Issue
Block a user