From 20009e6e846ec44d1aca41b56ad7123fc19bd290 Mon Sep 17 00:00:00 2001 From: "juansebastian.arteagafalconi@tc.gc.ca" Date: Thu, 9 Nov 2023 18:55:10 -0500 Subject: [PATCH] Fix bug businessMetadata - get_typedef generates a lower case businessmetadata. otherwise fails --- pyapacheatlas/core/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyapacheatlas/core/client.py b/pyapacheatlas/core/client.py index 115fc92..f70d13b 100644 --- a/pyapacheatlas/core/client.py +++ b/pyapacheatlas/core/client.py @@ -551,7 +551,7 @@ def get_typedef(self, type_category=None, guid=None, name=None): # business_Metadata has an underscore so before it can be used in # the endpoint, it must be converted to businessMetadata. atlas_endpoint = atlas_endpoint + \ - "{}def".format(type_category.value.replace("_", "")) + "{}def".format(type_category.value.replace("_", "").lower()) elif guid or name: atlas_endpoint = atlas_endpoint + "typedef" else: