From ae8e157ef8cb97232ed2eefff2260318191e5626 Mon Sep 17 00:00:00 2001 From: Nemental <15136847+Nemental@users.noreply.github.com> Date: Tue, 28 May 2024 12:03:03 +0200 Subject: [PATCH] fix: uid required --- plugins/modules/grafana_contact_point.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/modules/grafana_contact_point.py b/plugins/modules/grafana_contact_point.py index ef574642..88a7a0c1 100644 --- a/plugins/modules/grafana_contact_point.py +++ b/plugins/modules/grafana_contact_point.py @@ -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"), @@ -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"]],