Cloud discovery passes discovery_source value from service account and datacenters on output payload leading to incorrect discovery_source on discovered CIs.DescriptionCloud discovery passes discovery_source value from service account and datacenters on output payload leading to incorrect discovery_source on discovered CIs.Steps to Reproduce 1. Run AWS discovery2. CIs are created and discovery_source is set to ServiceNow3. Run SG-AWS integration, or manually just update the discovery_source in the service account4. CIs are updated to have discovery_source set to SG-AWS5. Run discovery again6. CIs should have discovery_source updated to ServiceNow, instead CIs(datacenters and service account for example) discovery_source remains as SG-AWSWorkaroundModify below script includes: 1> Script Include: CloudApplicationDiscovery Inside function: glideRecordToMap: function (gr) { Change line below: if (fieldName.indexOf('sys_') != 0 || fieldName == 'sys_class_name') to: if ((fieldName.indexOf('sys_') != 0 || fieldName == 'sys_class_name')&& fieldName != 'discovery_source') 2> Script Include: CloudServiceAccountPatterns Inside function: glideRecordToMap: function (gr) { Change line below: if (fieldName.indexOf('sys_') != 0 || fieldName == 'sys_class_name' || fieldName == 'sys_id') to: if ((fieldName.indexOf('sys_') != 0 || fieldName == 'sys_class_name' || fieldName == 'sys_id')&& fieldName != 'discovery_source') Related Problem: PRB1660023