File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
cads_processing_api_service Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,8 @@ def make_system_request(
64
64
except AttributeError :
65
65
entry_point = FALLBACK_ENTRY_POINT
66
66
67
- try :
68
- config = resource .config
69
- except AttributeError :
67
+ config = resource .adaptor_configuration
68
+ if config is None :
70
69
config = FALLBACK_CONFIG .copy ()
71
70
config ["collection_id" ] = process_id
72
71
Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ def test_make_system_request_default() -> None:
26
26
27
27
exp_setup_code = adaptors .FALLBACK_SETUP_CODE
28
28
exp_entry_point = adaptors .FALLBACK_ENTRY_POINT
29
- exp_kwargs = {"request" : inputs , "config" : adaptors .FALLBACK_CONFIG }
29
+ exp_kwargs = {
30
+ "request" : inputs ,
31
+ "config" : adaptors .FALLBACK_CONFIG | {"collection_id" : process_id },
32
+ }
30
33
exp_metadata = {"X-Forward-Process-ID" : process_id }
31
34
32
35
request = adaptors .make_system_request (process_id , execution_content , resource )
You can’t perform that action at this time.
0 commit comments