From 00cc192c60ec4780ed8dce8cf4b32b967073f0a4 Mon Sep 17 00:00:00 2001 From: Lou DeGenaro Date: Tue, 3 Dec 2024 13:27:28 -0500 Subject: [PATCH] tmpdir Signed-off-by: Lou DeGenaro --- trestle/tasks/cis_xlsx_to_oscal_cd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trestle/tasks/cis_xlsx_to_oscal_cd.py b/trestle/tasks/cis_xlsx_to_oscal_cd.py index aeec09597..a6eeae0da 100644 --- a/trestle/tasks/cis_xlsx_to_oscal_cd.py +++ b/trestle/tasks/cis_xlsx_to_oscal_cd.py @@ -163,15 +163,15 @@ def _execute(self) -> TaskOutcome: if not overwrite and pathlib.Path(ofile).exists(): logger.warning(f'output: {ofile} already exists') return TaskOutcome('failure') - with self._get_tempdir() as self._tmpdir: + with self._get_tempdir() as tmpdir: # step 1 - add combined sheet, if needed - combine_helper = CombineHelper(self.config_object, self._tmpdir) + combine_helper = CombineHelper(self.config_object, tmpdir) combine_helper.run() # step 2 - create trestle ready csv file from xlsx file - xlsx_to_csv_helper = XlsxToCsvHelper(self.config_object, self._tmpdir) + xlsx_to_csv_helper = XlsxToCsvHelper(self.config_object, tmpdir) xlsx_to_csv_helper.run() # step 3 - create OSCAL json file from csv file - csv_to_json_helper = CsvToJsonHelper(self.config_object, self._tmpdir) + csv_to_json_helper = CsvToJsonHelper(self.config_object, tmpdir) task_outcome = csv_to_json_helper.run() return task_outcome # failure