Merge branch 'devel' of https://github.com/volker48/ansible into volker48-devel
This commit is contained in:
commit
ff2b87f350
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ def main():
|
||||||
module.fail_json(rc=256, msg='Destination %s is a directory !' % dest)
|
module.fail_json(rc=256, msg='Destination %s is a directory !' % dest)
|
||||||
|
|
||||||
if params['state'] == 'present':
|
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')
|
module.fail_json(msg='line= is required with state=present')
|
||||||
|
|
||||||
# Deal with the insertafter default value manually, to avoid errors
|
# Deal with the insertafter default value manually, to avoid errors
|
||||||
|
|
Loading…
Reference in a new issue