Handle data error by discarding candidates with invalid data
Discard candidates if the cloud-owner or region id is missing
in the vserver associated with generic vnfs. This scenario can
occur when invalid data is present in A&AI database.
Issue-ID: OPTFRA-246
Change-Id: I1405267a8f3713c91e10da3d6fbd37c0ca3fc01f
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
cloud_owner = rl_data.get('d_value')
candidate['cloud_owner'] = cloud_owner
+ if not cloud_owner:
+ continue
search_key = "cloud-region.cloud-region-id"