From 74d4ea5cd0bcf57e32593accd76800699329f567 Mon Sep 17 00:00:00 2001 From: Nemental <15136847+Nemental@users.noreply.github.com> Date: Wed, 19 Jun 2024 09:55:14 +0200 Subject: [PATCH 1/2] fix(grafana_contact_point): get org by name func args --- plugins/modules/grafana_contact_point.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/modules/grafana_contact_point.py b/plugins/modules/grafana_contact_point.py index 500c64f6..b7633f3d 100644 --- a/plugins/modules/grafana_contact_point.py +++ b/plugins/modules/grafana_contact_point.py @@ -966,7 +966,9 @@ def __init__(self, module): module.params["url_username"], module.params["url_password"] ) self.org_id = ( - self.grafana_organization_by_name(module.params["org_name"]) + self.grafana_organization_by_name( + module.params, module.params["org_name"] + ) if module.params["org_name"] else module.params["org_id"] ) From cc93274611bdc29e9c29e3d4313188b6e604d61b Mon Sep 17 00:00:00 2001 From: Nemental <15136847+Nemental@users.noreply.github.com> Date: Wed, 19 Jun 2024 09:58:54 +0200 Subject: [PATCH 2/2] docs: changelog fragment --- changelogs/fragments/379-contact-points-org-name-func-args.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelogs/fragments/379-contact-points-org-name-func-args.yml diff --git a/changelogs/fragments/379-contact-points-org-name-func-args.yml b/changelogs/fragments/379-contact-points-org-name-func-args.yml new file mode 100644 index 00000000..5e8eea45 --- /dev/null +++ b/changelogs/fragments/379-contact-points-org-name-func-args.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - Add missing function argument in `grafana_contact_point` for org handling