Skip to content
Snippets Groups Projects
Commit 64639707 authored by Nathan Bockisch's avatar Nathan Bockisch
Browse files

Changed the flag to be more generic

parent ec393c8d
No related branches found
No related tags found
2 merge requests!1605Merge 2.8.2.3 work to main,!1506WS-1992: Added a wrester for associated files for images
Pipeline #12724 passed
......@@ -385,9 +385,9 @@ class WrestWorkflowMetadata:
self.conn.close()
return make_json
def wrest_image_products(self) -> json:
def wrest_curator_products(self) -> json:
"""
Given a locator or product group ID, returns the product list for the associated image
Given a locator or product group ID, returns the product filenames associated with it
:return: JSON containing the product list
"""
......
......@@ -115,7 +115,7 @@ def parser() -> argparse.ArgumentParser:
help="Find the product information necessary to run curator on the provided product locator",
)
arg_parser.add_argument(
"--image",
"--curator_products",
nargs=1,
action="store",
required=False,
......@@ -159,8 +159,8 @@ def determine_wrester(connection: MDDBConnector, args: argparse.Namespace):
data = WrestWorkflowMetadata(connection, spl=args.product).wrest_product_info()
elif args.curator:
data = WrestWorkflowMetadata(connection, spl=args.curator).wrest_curator()
elif args.image:
data = WrestWorkflowMetadata(connection, spl=args.image).wrest_image_products()
elif args.curator_products:
data = WrestWorkflowMetadata(connection, spl=args.image).wrest_curator_products()
else:
data = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment