Fix detecting strings with hashtag as requiring quotes

This commit is contained in:
Julien Falque
2020-09-07 19:11:53 +02:00
parent 597e88bb7b
commit 2744bab66e
2 changed files with 3 additions and 2 deletions

View File

@@ -330,7 +330,8 @@ class QuotedTestCase(RuleTestCase):
'- "%wheel ALL=(ALL) NOPASSWD: ALL"\n'
'- \'"quoted"\'\n'
'- "\'foo\' == \'bar\'"\n'
'- "\'Mac\' in ansible_facts.product_name"\n',
'- "\'Mac\' in ansible_facts.product_name"\n'
'- \'foo # bar\'\n',
conf)
self.check('---\n'
'k1: ""\n'