Skip to content

Commit ea0ba9b

Browse files
authored
Convert attached_ips generator to a list (#578)
This allows it to be subscriptable Co-Authored-By: @JerradGit
1 parent 157ce15 commit ea0ba9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/module_utils/netbox_ipam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _ensure_ip_in_prefix_present_on_netif(
8181

8282
attached_ips = nb_endpoint.filter(**query_params)
8383
if attached_ips:
84-
self.nb_object = attached_ips[-1].serialize()
84+
self.nb_object = list(attached_ips[-1]).serialize()
8585
self.result["changed"] = False
8686
self.result["msg"] = "%s %s already attached" % (
8787
endpoint_name,

0 commit comments

Comments
 (0)