Skip to content

Commit ca9c601

Browse files
committed
Updated pr
1 parent 3b6a692 commit ca9c601

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ads/jobs/builders/infrastructure/dataflow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,9 @@ def with_defined_tag(self, **kwargs) -> "DataFlow":
803803
return self.set_spec(self.CONST_DEFINED_TAGS, kwargs)
804804

805805
def __getattr__(self, item):
806-
if f"with_{item}" in self.__dir__() or (item == self.CONST_DEFINED_TAGS or self.CONST_FREEFORM_TAGS):
806+
if item == (self.CONST_DEFINED_TAGS or self.CONST_FREEFORM_TAGS):
807+
return self.get_spec(item)
808+
elif f"with_{item}" in self.__dir__() and item != ("defined_tag" or "freeform_tag"):
807809
return self.get_spec(item)
808810
raise AttributeError(f"Attribute {item} not found.")
809811

0 commit comments

Comments
 (0)