Skip to content

Commit

Permalink
restore behavior defaults to a dictionary
Browse files Browse the repository at this point in the history
Prior to PR #2454, behavioral data defaulted to a dictionary pointing to
a list. The PR changed it to an empty list. This is expected to be a
dictionary everywhere, and most code expects the "processes" key to
exist and either be empty or have process data in it.
  • Loading branch information
nbargnesi committed Jan 13, 2025
1 parent f872e2c commit 957e58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/processing/behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ def run(self):
@return: results dict.
"""

behavior = []
behavior = {"processes": []}
if path_exists(self.logs_path) and len(os.listdir(self.logs_path)) != 0:
behavior = {"processes": Processes(self.logs_path, self.task, self.options).run()}

Expand Down

0 comments on commit 957e58a

Please sign in to comment.