Quoted parameters should not be split on spaces
ajrgrubbs opened this issue · comments
AJ Grubbs commented
Example:
lookup('vault', 'my/arbitrary/path param="My short sentence"')
This would resolve param
to be "My
. (Then an index error occurs when resolving the next term, so nothing is submitted)
I think this should be an easy fix using the shlex
module's split()
method. I'd be happy to submit a PR but I'd like your input first.
Johan Haals commented
Sounds like a good idea to support quoted parameters 👍 👍