1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge branch 'devel' of https://github.com/volker48/ansible into volker48-devel

This commit is contained in:
James Cammarata 2013-09-23 21:24:43 -05:00
commit 93336ce00d

View file

@ -306,7 +306,7 @@ def main():
module.fail_json(rc=256, msg='Destination %s is a directory !' % dest)
if params['state'] == 'present':
if 'line' not in params:
if params.get('line', None) is None:
module.fail_json(msg='line= is required with state=present')
# Deal with the insertafter default value manually, to avoid errors