Skip to content

Commit

Permalink
sanity fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar242 committed Nov 28, 2023
1 parent b9c18fb commit 67baebc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/modules/cloudwatchevent_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,20 @@ def _format_json(json_string):
except json.decoder.JSONDecodeError:
return str(json.dumps(json_string))


def _validate_json(s):
try:
json.loads(s)
return True
except json.JSONDecodeError:
return False


def _snakify(dict):
"""Converts camel case to snake case"""
return camel_dict_to_snake_dict(dict)


class CloudWatchEventRule:
def __init__(
self, module, name, client, schedule_expression=None, event_pattern=None, description=None, role_arn=None
Expand Down Expand Up @@ -353,8 +356,6 @@ def _targets_request(self, targets):
return targets_request




class CloudWatchEventRuleManager:
RULE_FIELDS = ["name", "event_pattern", "schedule_expression", "description", "role_arn"]

Expand Down

0 comments on commit 67baebc

Please sign in to comment.