Skip to content

Commit

Permalink
Fix to update a_record with same name and different IP's (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanthKa677 authored Nov 23, 2022
1 parent b061b79 commit 6dcddc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def run(self, ib_obj_type, ib_spec):
if each.get('ipv4addr') and each.get('ipv4addr') == proposed_object.get('ipv4addr'):
current_object = each
# To check for existing Host_record with same name with input Host_record by IP
elif each.get('ipv4addrs')[0].get('ipv4addr') and each.get('ipv4addrs')[0].get('ipv4addr')\
elif each.get('ipv4addrs') and each.get('ipv4addrs')[0].get('ipv4addr')\
== proposed_object.get('ipv4addrs')[0].get('ipv4addr'):
current_object = each
# Else set the current_object with input value
Expand Down

0 comments on commit 6dcddc3

Please # to comment.