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:
parent
16b22d0d64
commit
4ba51eef6f
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue