From 249dc385276e0ba7be2b7d42e5d6bc2595d44983 Mon Sep 17 00:00:00 2001 From: Marcus McCurdy Date: Mon, 2 Sep 2013 16:16:45 -0400 Subject: [PATCH] Makes pervious lineinfile fix more explicit --- files/lineinfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/lineinfile b/files/lineinfile index 7dd38a3cf05..d68b272a04a 100644 --- a/files/lineinfile +++ b/files/lineinfile @@ -305,7 +305,7 @@ def main(): module.fail_json(rc=256, msg='Destination %s is a directory !' % dest) if params['state'] == 'present': - if params.get('line') is None: + 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