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 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"] )