mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #14504 from bcoca/template_comments
template also when only comments present
This commit is contained in:
commit
0b2f631197
1 changed files with 4 additions and 1 deletions
|
@ -373,7 +373,10 @@ class Templar:
|
||||||
'''
|
'''
|
||||||
returns True if the data contains a variable pattern
|
returns True if the data contains a variable pattern
|
||||||
'''
|
'''
|
||||||
return self.environment.block_start_string in data or self.environment.variable_start_string in data
|
for marker in [self.environment.block_start_string, self.environment.variable_start_string, self.environment.comment_start_string]:
|
||||||
|
if marker in data:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
def _convert_bare_variable(self, variable, bare_deprecated):
|
def _convert_bare_variable(self, variable, bare_deprecated):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue