diff --git a/jc/parsers/fstab.py b/jc/parsers/fstab.py index b4a932fa..9f32f0e7 100644 --- a/jc/parsers/fstab.py +++ b/jc/parsers/fstab.py @@ -106,7 +106,7 @@ def parse(data, raw=False, quiet=False): if line.strip().find('#') == 0: continue - line_list = line.split(maxsplit=5) + line_list = line.split(maxsplit=6) fs_spec = line_list[0] fs_file = line_list[1] fs_vfstype = line_list[2] @@ -114,18 +114,6 @@ def parse(data, raw=False, quiet=False): fs_freq = line_list[4] fs_passno = line_list[5] - # fstab_list = fstab.split() - - # comment_found = False - # for i, item in enumerate(fstab_list): - # if item.find('#') != -1: - # comment_found = True - # comment_item = i - # break - - # if comment_found: - # fstab_list = fstab_list[:comment_item] - output_line['fs_spec'] = fs_spec output_line['fs_file'] = fs_file output_line['fs_vfstype'] = fs_vfstype