Skip to content

Commit

Permalink
zabbix_inventory - do not require login credentials when auth_token i…
Browse files Browse the repository at this point in the history
…s provided (#1439)
  • Loading branch information
mu1f407 authored Dec 31, 2024
1 parent 28c1fcb commit 470ead0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/1439-inventory-required-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bugfixes:
- zabbix inventory plugin - do not require ``login_user`` and ``login_password`` to be present
when ``auth_token`` is provided (https://github.com/ansible-collections/community.zabbix/pull/1439).
3 changes: 0 additions & 3 deletions plugins/inventory/zabbix_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,22 +190,19 @@
description:
- Zabbix user name.
type: str
required: true
env:
- name: ZABBIX_USERNAME
login_password:
description:
- Zabbix user password.
type: str
required: true
env:
- name: ZABBIX_PASSWORD
auth_token:
description:
- Zabbix authentication token (see https://www.zabbix.com/documentation/current/en/manual/web_interface/frontend_sections/users/api_tokens)
- If provided then C(login_user) and C(login_password) are ignored
type: str
required: false
http_login_user:
description:
- Basic Auth login
Expand Down

0 comments on commit 470ead0

Please sign in to comment.