File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1881,7 +1881,11 @@ def find_domain_by_name(
18811881 :raises NotFoundError: if no domain with the provided name exists
18821882 """
18831883 attributes = attributes or []
1884- query = Term .with_name (name ) + Term .with_type_name ("DataDomain" )
1884+ query = (
1885+ Term .with_state ("ACTIVE" )
1886+ + Term .with_name (name )
1887+ + Term .with_type_name ("DataDomain" )
1888+ )
18851889 return self ._search_for_asset_with_name (
18861890 query = query , name = name , asset_type = DataDomain , attributes = attributes
18871891 )[0 ]
@@ -1901,7 +1905,11 @@ def find_product_by_name(
19011905 :raises NotFoundError: if no product with the provided name exists
19021906 """
19031907 attributes = attributes or []
1904- query = Term .with_name (name ) + Term .with_type_name ("DataProduct" )
1908+ query = (
1909+ Term .with_state ("ACTIVE" )
1910+ + Term .with_name (name )
1911+ + Term .with_type_name ("DataProduct" )
1912+ )
19051913 return self ._search_for_asset_with_name (
19061914 query = query , name = name , asset_type = DataProduct , attributes = attributes
19071915 )[0 ]
You can’t perform that action at this time.
0 commit comments