From ed3c8f166b9b9eb313f707180c7dc8655c457986 Mon Sep 17 00:00:00 2001 From: gse89 Date: Fri, 19 Jan 2024 14:24:36 +0100 Subject: [PATCH] Fix wrong variable in AtlasEntity::addRelationship --- pyapacheatlas/core/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyapacheatlas/core/entity.py b/pyapacheatlas/core/entity.py index 0081960..0456f50 100644 --- a/pyapacheatlas/core/entity.py +++ b/pyapacheatlas/core/entity.py @@ -226,7 +226,7 @@ def addRelationship(self, **kwargs): Union(dict, :class:`pyapacheatlas.core.entity.AtlasEntity`) """ relationshipAttributes_was_uninitialized = isinstance( - self.customAttributes, AtlasUnInit) + self.relationshipAttributes, AtlasUnInit) relationships_to_add = {} if relationshipAttributes_was_uninitialized: self.relationshipAttributes = {}