Fix comment yaml escaping in authorized_key module

reviewable/pr18780/r1
James Tanner 11 years ago
parent 999b04f7fa
commit fa4b30819a

@ -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 = ["'", '"']

Loading…
Cancel
Save