File tree Expand file tree Collapse file tree
converter/converter/cisu/resources_status Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,9 +44,14 @@ def from_rs_to_cisu(
4444 resource_id = get_field_value (content , ResourcesStatusConstants .RESOURCE_ID )
4545 rs_ri = persisted_rs_ri .payload
4646 rs_ri_content = ResourcesInfoCISUConverter .copy_rs_input_use_case_content (rs_ri )
47- resources = get_field_value (rs_ri_content , ResourcesInfoCISUConstants .RESOURCE_PATH ) or []
48- resource_ids_in_rs_ri = {r .get (ResourcesInfoCISUConstants .RESOURCE_ID_KEY ) for r in resources }
49-
47+ resources = (
48+ get_field_value (rs_ri_content , ResourcesInfoCISUConstants .RESOURCE_PATH )
49+ or []
50+ )
51+ resource_ids_in_rs_ri = {
52+ r .get (ResourcesInfoCISUConstants .RESOURCE_ID_KEY ) for r in resources
53+ }
54+
5055 if resource_id not in resource_ids_in_rs_ri :
5156 raise ValueError (
5257 f"Resource '{ resource_id } ' from RS-SR not found in RS-RI for caseId '{ case_id } '"
You can’t perform that action at this time.
0 commit comments