1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix comment yaml escaping in authorized_key module

This commit is contained in:
James Tanner 2013-11-26 08:54:19 -05:00
parent 82c9f5bfe4
commit 7be13faae8

View file

@ -215,6 +215,9 @@ def parsekey(raw_key):
key_type = None # type of ssh key
type_index = None # index of keytype in key string|list
# remove comment yaml escapes
raw_key = raw_key.replace('\#', '#')
# split key safely
lex = shlex.shlex(raw_key)
lex.quotes = ["'", '"']