Skip to content

Commit

Permalink
incorporated review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Saksham-Nautiyal committed Feb 18, 2025
1 parent 87742fb commit f2ee0f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/modules/alert_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,8 @@ def get_module_params(self, module_params):

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

def create_alert_condition(self, module_params):
Expand Down

0 comments on commit f2ee0f8

Please sign in to comment.