Skip to content

Commit

Permalink
chore: new module args
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Jul 2, 2024
1 parent 5321b90 commit c2423a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/modules/grafana_silence.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,9 @@ def setup_module_object():
argument_spec.update(
comment=dict(type="str", required=True),
created_by=dict(type="str", required=True),
ends_at=dict(type="str", required=True),
duration=dict(type="str"),
ends_at=dict(type="str"),
id=dict(type="str"),
matchers=dict(type="list", elements="dict", required=True),
org_id=dict(default=1, type="int"),
org_name=dict(type="str"),
Expand All @@ -407,8 +409,10 @@ def main():
module = setup_module_object()
comment = module.params["comment"]
created_by = module.params["created_by"]
ends_at = module.params["ends_at"]
duration = module.params.get("duration")
ends_at = module.params.get("ends_at")
matchers = module.params["matchers"]
silence_id = module.params.get("id")
starts_at = module.params["starts_at"]
state = module.params["state"]

Expand Down

0 comments on commit c2423a9

Please sign in to comment.