You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.../ansible_collections/infoblox/nios_modules/plugins/module_utils/api.py", line 710, in compare_objects\nAttributeError: 'str' object has no attribute 'get'
tasks:
- name: configure an ipv4 host record with alias - no extattr
infoblox.nios_modules.nios_host_record:
name: "test5.example.com"
ipv4:
- address: "10.10.10.15"
aliases:
- alias_test5_1.example.com
state: present
provider:
host: "192.168.111.10"
username: "admin"
password: "infoblox"
connection: local
The following fixes it:
*** nios_modules/plugins/module_utils/api.py 2024-12-02 14:40:31.238885201 +0000
--- nios_modules/plugins/module_utils/api.py-fixed 2024-12-02 16:18:33.943565524 +0000
*** 704,710 ****
return False
for subitem in proposed_item:
! if current_item:
# Host IPv4addrs wont contain use_nextserver and nextserver
# If DHCP is false.
dhcp_flag = current_item[0].get('configure_for_dhcp', False)
--- 704,710 ----
return False
for subitem in proposed_item:
! if key == 'ipv4addrs' and current_item:
# Host IPv4addrs wont contain use_nextserver and nextserver
# If DHCP is false.
dhcp_flag = current_item[0].get('configure_for_dhcp', False)
Creating pull request, also.
The text was updated successfully, but these errors were encountered:
.../ansible_collections/infoblox/nios_modules/plugins/module_utils/api.py", line 710, in compare_objects\nAttributeError: 'str' object has no attribute 'get'
tasks:
- name: configure an ipv4 host record with alias - no extattr
infoblox.nios_modules.nios_host_record:
name: "test5.example.com"
ipv4:
- address: "10.10.10.15"
aliases:
- alias_test5_1.example.com
state: present
provider:
host: "192.168.111.10"
username: "admin"
password: "infoblox"
connection: local
The following fixes it:
*** nios_modules/plugins/module_utils/api.py 2024-12-02 14:40:31.238885201 +0000
--- nios_modules/plugins/module_utils/api.py-fixed 2024-12-02 16:18:33.943565524 +0000
*** 704,710 ****
return False
! if current_item:
# Host IPv4addrs wont contain use_nextserver and nextserver
# If DHCP is false.
dhcp_flag = current_item[0].get('configure_for_dhcp', False)
--- 704,710 ----
return False
! if key == 'ipv4addrs' and current_item:
# Host IPv4addrs wont contain use_nextserver and nextserver
# If DHCP is false.
dhcp_flag = current_item[0].get('configure_for_dhcp', False)
Creating pull request, also.
The text was updated successfully, but these errors were encountered: