Skip to content

Commit

Permalink
YDA-5992: limit search for data packages to vault
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Dec 4, 2024
1 parent e863948 commit 991fc21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion publication_troubleshoot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ def find_full_package_path(ctx, package_name, write_stdout):
:returns: The full path of the data package if found, otherwise None.
"""
user_zone = user.zone(ctx)

try:
query_condition = (
"COLL_NAME like '%{}%'".format(package_name)
"COLL_NAME like '/{}/home/vault-%{}%'".format(user_zone, package_name)
)
query_attributes = "COLL_NAME"
iter = genquery.row_iterator(query_attributes, query_condition, genquery.AS_LIST, ctx)
Expand Down

0 comments on commit 991fc21

Please sign in to comment.