Closed piaudonn closed 4 weeks ago
Typo in the code, we check for the parameter AddAccountComment instead of AddAccountComments. As a result, we always add comments for Accounts. https://github.com/briandelmsft/STAT-Function/blob/main/modules/base.py#L61
AddAccountComment
AddAccountComments
Need to check for the other comment parameters if it needs to be plural or not.
looks like this is probably true for the IP comment too based on the connector:
https://github.com/briandelmsft/SentinelAutomationModules/blob/ca36f641e7401cc8dcc9cc77f6eac57f0f16ff87/Connector/connector.json#L110
so looks like it needs fixed in these 3 places:
https://github.com/briandelmsft/STAT-Function/blob/48f9183ac44d0415c28813d6279f4f7a281b3276/modules/base.py#L61
https://github.com/briandelmsft/STAT-Function/blob/48f9183ac44d0415c28813d6279f4f7a281b3276/modules/base.py#L64
https://github.com/briandelmsft/STAT-Function/blob/48f9183ac44d0415c28813d6279f4f7a281b3276/modules/base.py#L67
Typo in the code, we check for the parameter
AddAccountComment
instead ofAddAccountComments
. As a result, we always add comments for Accounts. https://github.com/briandelmsft/STAT-Function/blob/main/modules/base.py#L61Need to check for the other comment parameters if it needs to be plural or not.