Agent: Modify clear command history PBA to return pba_data and not None

This commit is contained in:
Shreya Malviya 2022-03-30 13:42:17 +05:30
parent 40b1ae0058
commit 0be6af2d5c
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ class ClearCommandHistory(PBA):
if results:
# `self.command` is empty here
self.pba_data.append(PostBreachData(self.name, self.command, results))
return self.pba_data
return self.pba_data
def clear_command_history_pba_list(self):
return self.CommandHistoryPBAGenerator().get_clear_command_history_pbas()