You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2022/04/25 19:12:15 UTC
[atlas] branch branch-2.0 updated: fix minor problem in list_attributes_to_params()
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 371f3ccc1 fix minor problem in list_attributes_to_params()
371f3ccc1 is described below
commit 371f3ccc1a17f06dc1746e6a7475d6236eaaf650
Author: Doron Chen <cd...@il.ibm.com>
AuthorDate: Mon Apr 25 17:40:02 2022 +0300
fix minor problem in list_attributes_to_params()
Signed-off-by: Madhan Neethiraj <ma...@apache.org>
(cherry picked from commit cc47aca6cf9a7e05c9e81ab218a077f40af8d9fe)
---
intg/src/main/python/apache_atlas/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/intg/src/main/python/apache_atlas/utils.py b/intg/src/main/python/apache_atlas/utils.py
index 01d0762be..c7d3d52b5 100644
--- a/intg/src/main/python/apache_atlas/utils.py
+++ b/intg/src/main/python/apache_atlas/utils.py
@@ -43,7 +43,7 @@ def list_attributes_to_params(attributes_list, query_params=None):
for i, attr in enumerate(attributes_list):
for key, value in attr.items():
- new_key = PREFIX_ATTR_ + i + ":" + key
+ new_key = PREFIX_ATTR_ + str(i) + ":" + key
query_params[new_key] = value
return query_params