From e2adb377897175f86c4c515d9d901f272acabed9 Mon Sep 17 00:00:00 2001 From: A Codeweavers Infrastructure Bod <36475663+infraweavers@users.noreply.github.com> Date: Tue, 16 Jul 2019 03:28:19 +0100 Subject: [PATCH] crypttab: 'NoneType' object is not callable when password is NoneType (#56790) This looks to have been broken in commit 8bd5757720d6855d958981582567b7ffc348d488 where a fields.append was replaced with a call to self.password --- lib/ansible/modules/system/crypttab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/crypttab.py b/lib/ansible/modules/system/crypttab.py index 2c3f9d22c76..c29a5dbb921 100644 --- a/lib/ansible/modules/system/crypttab.py +++ b/lib/ansible/modules/system/crypttab.py @@ -280,7 +280,7 @@ class Line(object): if self.password is not None: fields.append(self.password) else: - self.password('none') + fields.append('none') if self.opts: fields.append(str(self.opts)) return ' '.join(fields)