This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new cc47aca6c fix minor problem in list_attributes_to_params()
cc47aca6c is described below

commit cc47aca6cf9a7e05c9e81ab218a077f40af8d9fe
Author: Doron Chen <[email protected]>
AuthorDate: Mon Apr 25 17:40:02 2022 +0300

    fix minor problem in list_attributes_to_params()
    
    Signed-off-by: Madhan Neethiraj <[email protected]>
---
 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

Reply via email to