Skip to content

Commit

Permalink
fix: handle empty ProfileSource correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Lou DeGenaro <[email protected]>
  • Loading branch information
degenaro committed Oct 17, 2023
1 parent 04984cb commit 1b42455
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trestle/tasks/csv_to_oscal_cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1510,8 +1510,9 @@ def __init__(self, csv_path: pathlib.Path) -> None:
logger.debug(f'csv-rules: {key} {self._csv_rules_map[key][0]}')
# set parameters, by component
source = self.get_row_value(row, PROFILE_SOURCE)
if source not in self._csv_profile_list:
self._csv_profile_list.append(source)
if source:
if source not in self._csv_profile_list:
self._csv_profile_list.append(source)
description = self.get_row_value(row, PROFILE_DESCRIPTION)
param_id = self.get_row_value(row, PARAMETER_ID)
if param_id:
Expand Down

0 comments on commit 1b42455

Please sign in to comment.