From fe5086c20c2bb6089ebb7b913951a4b813358e4c Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Wed, 17 Feb 2016 13:56:09 +0100 Subject: [PATCH] Change the result function of the GetAttribute class to return self. As this function does not return a "valid" result I think that is better that it returns a GetAttribute object instead of a list that can confuse the user that it is a real result. Change-Id: Ia4d5384dc6b84f66a657d585684a1bc0e8fbb0a4 --- toscaparser/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toscaparser/functions.py b/toscaparser/functions.py index d38cceb..f143e67 100644 --- a/toscaparser/functions.py +++ b/toscaparser/functions.py @@ -131,7 +131,7 @@ class GetAttribute(Function): self._find_node_template_containing_attribute() def result(self): - return self.args + return self def get_referenced_node_template(self): """Gets the NodeTemplate instance the get_attribute function refers to.