Skip to content

Commit ae7a630

Browse files
committed
Resolve search_id keyword path interpolation issue with GetSearchStatusV1. Closes #1365.
1 parent 72d8840 commit ae7a630

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/falconpy/_util/_uber.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,13 @@ def scrub_target(oper: str, scrubbed: str, kwas: dict) -> str:
115115
"GetLookupFromPackageWithNamespaceV1": ["repository", "namespace", "package", "filename"],
116116
"GetLookupFromPackageV1": ["repository", "package", "filename"],
117117
"StartSearchV1": ["repository"],
118-
"GetSearchStatusV1": ["repository", "id"],
118+
"GetSearchStatusV1": ["repository", "id", "search_id"],
119119
"StopSearchV1": ["repository", "id"]
120120
}
121121
for field_value, field_names in field_mapping.items():
122122
if oper == field_value: # Only perform replacements on mapped operation IDs.
123+
if oper == "GetSearchStatusV1" and (not kwas.get("id") and kwas.get("search_id")):
124+
kwas["id"] = kwas["search_id"]
123125
if len(field_names) == 1:
124126
scrubbed = handle_field(scrubbed, kwas, field_names[0])
125127
else:

0 commit comments

Comments
 (0)