This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 2183800 ATLAS-4086: python client fixes - updated discovery.py to
replace comma with colon as key/value separator
2183800 is described below
commit 21838002109c049a195aaa55bdef6169a3cb736a
Author: epurn <[email protected]>
AuthorDate: Fri Mar 12 10:54:59 2021 -0400
ATLAS-4086: python client fixes - updated discovery.py to replace comma
with colon as key/value separator
Signed-off-by: Madhan Neethiraj <[email protected]>
(cherry picked from commit 7eab2cb8d53ca4c86366e896119a1d7906ccb5b3)
---
intg/src/main/python/apache_atlas/client/discovery.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/intg/src/main/python/apache_atlas/client/discovery.py
b/intg/src/main/python/apache_atlas/client/discovery.py
index b4fc0a8..a05573e 100644
--- a/intg/src/main/python/apache_atlas/client/discovery.py
+++ b/intg/src/main/python/apache_atlas/client/discovery.py
@@ -60,7 +60,7 @@ class DiscoveryClient:
self.client = client
def dsl_search(self, query):
- query_params = {DiscoveryClient.QUERY, query}
+ query_params = {DiscoveryClient.QUERY: query}
return self.client.call_api(DiscoveryClient.DSL_SEARCH,
AtlasSearchResult, query_params)
@@ -70,7 +70,7 @@ class DiscoveryClient:
return self.client.call_api(DiscoveryClient.DSL_SEARCH,
AtlasSearchResult, query_params)
def full_text_search(self, query):
- query_params = {DiscoveryClient.QUERY, query}
+ query_params = {DiscoveryClient.QUERY: query}
return self.client.call_api(DiscoveryClient.FULL_TEXT_SEARCH,
AtlasSearchResult, query_params)
@@ -131,12 +131,12 @@ class DiscoveryClient:
return self.client.call_api(DiscoveryClient.GET_SUGGESTIONS,
AtlasSuggestionsResult, query_params)
def get_saved_searches(self, user_name):
- query_params = {"user", user_name}
+ query_params = {"user": user_name}
return self.client.call_api(DiscoveryClient.GET_SAVED_SEARCHES, list,
query_params)
def get_saved_search(self, user_name, search_name):
- query_params = {"user", user_name}
+ query_params = {"user": user_name}
return
self.client.call_api(DiscoveryClient.GET_SAVED_SEARCH.format_path({'search_name':
search_name}),
AtlasUserSavedSearch, query_params)
@@ -151,7 +151,7 @@ class DiscoveryClient:
return
self.client.call_api(DiscoveryClient.DELETE_SAVED_SEARCH.format_path({'guid':
guid}))
def execute_saved_search_with_user_name(self, user_name, search_name):
- query_params = {"user", user_name}
+ query_params = {"user": user_name}
return self.client.call_api(
DiscoveryClient.EXECUTE_SAVED_SEARCH_BY_NAME.format_path({'search_name':
search_name}),