the ansible version constant is now in a different place
This commit is contained in:
parent
cd03f10b9c
commit
a12696d598
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ def main():
|
|||
marker1 = re.sub(r'{mark}', 'END', marker)
|
||||
if present and block:
|
||||
# Escape seqeuences like '\n' need to be handled in Ansible 1.x
|
||||
if module.constants['ANSIBLE_VERSION'].startswith('1.'):
|
||||
if module.ansible_version.startswith('1.'):
|
||||
block = re.sub('', block, '')
|
||||
blocklines = [marker0] + block.splitlines() + [marker1]
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue