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

Save comment hashes in sshkeys

This commit is contained in:
James Tanner 2013-11-25 23:46:48 -05:00
parent 16b22d0d64
commit 4ba51eef6f

View file

@ -218,6 +218,7 @@ def parsekey(raw_key):
# split key safely
lex = shlex.shlex(raw_key)
lex.quotes = ["'", '"']
lex.commenters = '' #keep comment hashes
lex.whitespace_split = True
key_parts = list(lex)