Skip to content

Commit

Permalink
fix: uid required
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed May 28, 2024
1 parent 0729b30 commit ae8e157
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/modules/grafana_contact_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ def main():
"wecom",
],
),
uid=dict(type="str"),
uid=dict(required=True, type="str"),
# alertmanager
alertmanager_password=dict(type="str", no_log=True),
alertmanager_url=dict(type="str"),
Expand Down Expand Up @@ -1311,8 +1311,7 @@ def main():
required_together=[["url_username", "url_password", "org_id"]],
mutually_exclusive=[["url_username", "grafana_api_key"]],
required_if=[
["state", "present", ["uid", "name", "type"]],
["state", "absent", ["uid"]],
["state", "present", ["name", "type"]],
["type", "alertmanager", ["alertmanager_url"]],
["type", "dingding", ["dingding_url"]],
["type", "discord", ["discord_url"]],
Expand Down

0 comments on commit ae8e157

Please sign in to comment.