crypttab: 'NoneType' object is not callable when password is NoneType (#56790)

This looks to have been broken in commit 8bd5757720 where a fields.append was replaced with a call to self.password
This commit is contained in:
A Codeweavers Infrastructure Bod 2019-07-16 03:28:19 +01:00 committed by Abhijeet Kasurde
parent 4255ee8e5a
commit e2adb37789

View file

@ -280,7 +280,7 @@ class Line(object):
if self.password is not None: if self.password is not None:
fields.append(self.password) fields.append(self.password)
else: else:
self.password('none') fields.append('none')
if self.opts: if self.opts:
fields.append(str(self.opts)) fields.append(str(self.opts))
return ' '.join(fields) return ' '.join(fields)