Skip to content

Commit

Permalink
alert_rule_reg_fix (#159)
Browse files Browse the repository at this point in the history
* alert_rule_reg_fix

* incorporated review comments
  • Loading branch information
Saksham-Nautiyal authored Feb 19, 2025
1 parent 79c8483 commit 5f7a55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/alert_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def get_module_params(self, module_params):

def process_categories(self, module_params, alert_data):
categories = module_params.get('categories', [])
if "all" in categories:
if categories and "all" in categories:
alert_data["categories"] = ["all"]
return alert_data

Expand Down

0 comments on commit 5f7a55f

Please sign in to comment.