mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 17:23:09 +00:00
Save comment hashes in sshkeys
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user