@@ -820,7 +820,7 @@ def get(self, path_segment="", owner=None, app=None, sharing=None, **query):
820820 # Search API v2+ fallback to v1:
821821 # - In v2+, /results_preview, /events and /results do not support search params.
822822 # - Fallback from v2+ to v1 if Splunk Version is < 9.
823- if api_version >= 2 and ('search' in query and path .endswith (tuple (["results_preview" , "events" , "results" ])) or self .service .splunk_version < (9 ,)):
823+ if api_version >= 2 and ('search' in query and path .endswith (tuple (["results_preview" , "events" , "results" ])) or self .service .splunk_version < (9 ,)):
824824 path = path .replace (PATH_JOBS_V2 , PATH_JOBS )
825825 return self .service .get (path ,
826826 owner = owner , app = app , sharing = sharing ,
@@ -888,7 +888,7 @@ def post(self, path_segment="", owner=None, app=None, sharing=None, **query):
888888 # Search API v2+ fallback to v1:
889889 # - In v2+, /results_preview, /events and /results do not support search params.
890890 # - Fallback from v2+ to v1 if Splunk Version is < 9.
891- if api_version >= 2 and ('search' in query and path .endswith (tuple (["results_preview" , "events" , "results" ])) or self .service .splunk_version < (9 ,)):
891+ if api_version >= 2 and ('search' in query and path .endswith (tuple (["results_preview" , "events" , "results" ])) or self .service .splunk_version < (9 ,)):
892892 path = path .replace (PATH_JOBS_V2 , PATH_JOBS )
893893 return self .service .post (path , owner = owner , app = app , sharing = sharing , ** query )
894894
0 commit comments