diff --git a/CHANGELOG.md b/CHANGELOG.md index 964ea1f48..7dde1119f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,8 @@ - `installation_tokens.py` + Fixed: API operations generating leveraging the raw attribute are not properly displaying results when leveraging result object expansion. Closes #1076. - `_result/_result.py` ++ Fixed: Per-operation pythonic override is not working as expected. Closes #1078. + - `_util/_functions.py` # Other + Changed: Updated field mapping for Uber Class path variables to a cleaner solution. diff --git a/src/falconpy/_util/_functions.py b/src/falconpy/_util/_functions.py index 43016515e..012276482 100644 --- a/src/falconpy/_util/_functions.py +++ b/src/falconpy/_util/_functions.py @@ -667,6 +667,9 @@ def process_service_request(calling_object, # pylint: disable=R0914 # (19/15) calling_object.pythonic ) expand_result = passed_keywords.get("expand_result", False) if passed_keywords else kwargs.get("expand_result", False) + do_pythonic = calling_object.pythonic + if passed_keywords.get("pythonic", None) is not None: + do_pythonic = passed_keywords.get("pythonic") new_keywords = { "caller": calling_object, "method": target_endpoint[1], @@ -681,7 +684,7 @@ def process_service_request(calling_object, # pylint: disable=R0914 # (19/15) "body_required": kwargs.get("body_required", None), "expand_result": expand_result, "container": container, - "pythonic": calling_object.pythonic, + "pythonic": do_pythonic, "perform": True }