diff --git a/plugins/module_utils/api.py b/plugins/module_utils/api.py index 79b7c7e0..ced9de6f 100644 --- a/plugins/module_utils/api.py +++ b/plugins/module_utils/api.py @@ -543,6 +543,8 @@ def get_object_ref(self, module, ib_obj_type, obj_filter, ib_spec): test_obj_filter = dict([['mac', obj_filter['mac']]]) elif (ib_obj_type == NIOS_IPV6_FIXED_ADDRESS and 'duid' in obj_filter): test_obj_filter = dict([['duid', obj_filter['duid']]]) + elif (ib_obj_type == NIOS_CNAME_RECORD): + test_obj_filter = dict([('name', obj_filter['name']), ('view', obj_filter['view'])]) elif (ib_obj_type == NIOS_A_RECORD): # resolves issue where a_record with uppercase name was returning null and was failing test_obj_filter = obj_filter