diff --git a/glitch/parsers/cmof.py b/glitch/parsers/cmof.py index c7b1a3c..69c6146 100644 --- a/glitch/parsers/cmof.py +++ b/glitch/parsers/cmof.py @@ -230,6 +230,7 @@ def __parse_playbook(self, name, file, parsed_file = None) -> UnitBlock: unit_block.path = file.name file.seek(0, 0) code = file.readlines() + code.append("") # HACK allows to parse code in the end of the file for p in parsed_file.value: # Plays are unit blocks inside a unit block @@ -266,6 +267,7 @@ def __parse_tasks_file(self, name, file, parsed_file = None) -> UnitBlock: unit_block.path = file.name file.seek(0, 0) code = file.readlines() + code.append("") # HACK allows to parse code in the end of the file if parsed_file is None: return unit_block @@ -289,6 +291,7 @@ def __parse_vars_file(self, name, file, parsed_file=None) -> UnitBlock: unit_block.path = file.name file.seek(0, 0) code = file.readlines() + code.append("") # HACK allows to parse code in the end of the file if parsed_file is None: return unit_block