Skip to content

Commit

Permalink
Update changelog comment and modify module
Browse files Browse the repository at this point in the history
  • Loading branch information
masa-orca committed Jan 12, 2024
1 parent 6fb0dfc commit fb90a9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelogs/fragments/1162-do_not_update_ipmi_options.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bugfixes:
- zabbix_host - Don't reset IPMI setting when update inventory
- zabbix_host - Don't reset IPMI setting when update inventory data of a host
4 changes: 2 additions & 2 deletions plugins/modules/zabbix_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,9 @@ def update_host(self, host_name, group_ids, status, host_id, interfaces, exist_i
parameters["tls_subject"] = tls_subject
if (description is not None and description != zabbix_host_obj["description"]):
parameters["description"] = description
if ipmi_authtype:
if (ipmi_authtype is not None and ipmi_authtype != zabbix_host_obj["ipmi_authtype"]):
parameters["ipmi_authtype"] = ipmi_authtype
if ipmi_privilege:
if (ipmi_privilege is not None and ipmi_privilege != zabbix_host_obj["ipmi_privilege"]):
parameters["ipmi_privilege"] = ipmi_privilege
if (ipmi_username is not None and ipmi_username != zabbix_host_obj["ipmi_username"]):
parameters["ipmi_username"] = ipmi_username
Expand Down

0 comments on commit fb90a9d

Please sign in to comment.