Skip to content

Commit c9fec7a

Browse files
author
saiprasannasastry
committed
Fixing update option of IP for A Record
1 parent 87eb4d7 commit c9fec7a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

infoblox_client/objects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ class ARecord(ARecordBase):
851851
'ttl']
852852
_search_for_update_fields = ['ipv4addr', 'view']
853853
_all_searchable_fields = _search_for_update_fields + ['name']
854+
_updateable_search_fields = ['ipv4addr']
854855
_return_fields = ['ipv4addr', 'name']
855856
_shadow_fields = ['_ref']
856857
_remap = {'ip': 'ipv4addr'}

tests/test_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def test_update_fields_on_create(self):
401401
return_fields=[])
402402
connector.update_object.assert_called_once_with(
403403
a_record[0]['_ref'],
404-
{'name': 'some-new_name'},
404+
{'name': 'some-new_name','ipv4addr': '192.168.1.52'},
405405
mock.ANY)
406406

407407
def test_ip_version(self):

0 commit comments

Comments
 (0)