Agent: Modify PBA base class to return pba_data and not None

This commit is contained in:
Shreya Malviya 2022-03-30 13:46:09 +05:30
parent 501d32b171
commit a2bad110a1
1 changed files with 2 additions and 1 deletions

View File

@ -45,10 +45,11 @@ class PBA:
) )
) )
self.pba_data.append(PostBreachData(self.name, self.command, result)) self.pba_data.append(PostBreachData(self.name, self.command, result))
return self.pba_data
else: else:
logger.debug(f"No command available for PBA '{self.name}' on current OS, skipping.") logger.debug(f"No command available for PBA '{self.name}' on current OS, skipping.")
return self.pba_data
def is_script(self): def is_script(self):
""" """
Determines if PBA is a script (PBA might be a single command) Determines if PBA is a script (PBA might be a single command)