From 50905e567353441515ea526a77439cdb1f882e1f Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 29 Oct 2015 21:04:28 -0400 Subject: [PATCH] fixed typos in cryptab, thanks @timw fixes #1176 --- lib/ansible/modules/extras/system/crypttab.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/system/crypttab.py b/lib/ansible/modules/extras/system/crypttab.py index 2a8cdc9d36..d483e33963 100755 --- a/lib/ansible/modules/extras/system/crypttab.py +++ b/lib/ansible/modules/extras/system/crypttab.py @@ -252,18 +252,18 @@ class Line(object): def _split_line(self, line): fields = line.split() try: - field2 = field[2] + field2 = fields[2] except IndexError: field2 = None try: - field3 = field[3] + field3 = fields[3] except IndexError: field3 = None return (fields[0], fields[1], field2, - fields3) + field3) def remove(self): self.line, self.name, self.backing_device = '', None, None